hey...i'm having trouble passing a user define 2d array...
void genrand(int &game[][],int &size)
{
int i,j;
for(i=0;i<size;i++)
{
for(j=0;size;j++)
{
game[i][j]=(rand()%100);
}
}
}
int main()
{
int size;
int game[][];
cout<<"Please enter your Game Size";
cin>>size;
genrand(game[][],size);
return 0;
system("pause");
}
This is my code...i read in another c++ forum where they stated that i need to specify the array...i'm not sure either...