can any1 tell me how to return 2d array from a nested functions......
i am doing it like that i have two classes........ ...
Game{
private:
int array[6][6];
public:
int** fillArray()
{
return array;
}
};
Graphics
{
private:
Game play;
int** fillArray()
{
int **array=play.fi llArray();
return array;
}
};
void main()
{
Graphics gr
int **arr= gr.fillaArray() ;
}
If there is some way to do this kindly tell me i am in extreme trouble ....there is some trouble in this code so kindly tell me
regards Abdul Samad
i am doing it like that i have two classes........ ...
Game{
private:
int array[6][6];
public:
int** fillArray()
{
return array;
}
};
Graphics
{
private:
Game play;
int** fillArray()
{
int **array=play.fi llArray();
return array;
}
};
void main()
{
Graphics gr
int **arr= gr.fillaArray() ;
}
If there is some way to do this kindly tell me i am in extreme trouble ....there is some trouble in this code so kindly tell me
regards Abdul Samad
Comment