c++ - Qt - Return an Array Of Array Of qint32 -
this question has answer here:
- how return 2d array of pointers in c++ 2 answers
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
Post a Comment