c++ - Qt - Return an Array Of Array Of qint32 -


this question has answer here:

i have in main :

void main() {      qint32 led[32][32];      led = init_all(led); } 

i have this, don't work :

qint32** init_all(qint32 led[32][32]) {      //set 0      return led; } 

i return correctly led.

you need pass led pointer (or reference in case of c++) init_all. otherwise, copy passed subroutine, not, want. btw, should start learning c or c++ before starting qt. need basic knowledge of programming language before starting qt.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -