September 23rd, 2010, 09:26 PM
c++ array help
I need to output a seating chart for an airplane to look like this:
I keep getting an infinite loop when i try to number the rows.
int index = 1;
for (int n=0; n<7; n++)
for (int m=0; m<4; m++)
if(n = 1)
cout << index << plane[n][m] << " ";
cout << plane[n][m] << " ";
cout << endl;
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.