vendredi 6 mars 2015

function that returns an array of objects


I have got a structure



class pyatno {


int pyatnoNumber;
int locX, locY;
bool possible;
char *number;
char pyatnoView[4][4];
}


the idea is to make a function, that would return an array of pyatno.pyatnoView objects, but there is a mess. I don't understand how exactly I can get access to this "property". I am not strong in c++, so if it isn't real, or i am talking something wrong, explain please, cause I am really stacked in this question.




Aucun commentaire:

Enregistrer un commentaire