Hello everyone.
I am working on my final project at university for C++, and I got stuck a little.
I have an array inside an array. And I want to access that inner array's member and print it with cout.
Here is the code:
void standings(userClub uc){
cout << endl;
cout << "First Division" << endl;
int table[10];
for(int i=0; i<=9; i++){
table[i] = coms[i].pts;
}
table[9]=uc.pts;
sort(table, table+10);
int y=9;
while(y>=0){
cout << table[coms[y].name] << "\t"; // HERE I WANT TO ACCESS
cout << table[y] << endl; // coms array
y--;
}
}
Please have in mind that I'm not a pro... Thanks x)