How to Pass Matrix in Function
I am unsure how to pass a matrix in a function using codeblocks. I keep trying different things, but can't figure it out. Here is a part of my code. Where I have void getdata I keep getting errors on the stats, which is a matrix. Any help would be great. Thanks
Ryan
void getdata (double &stats, vector <string> &names, int num);
void file (double &stats, vector <string> &names, int num);
void display (int num);
int main ()
{
int num, ans;
cout<<"How many players are there: ";
cin>>num;
double stats[num][3];
vector <string> names (num);
int flag = 1;