Simple Method

I created a method and for some reason, i get attacked by red squiggly lines under the test on line 1 and 2.

1
2
3
4
5
6
7
  double displaySeats(char[][]test){
	for (int row = 0; row < test.length; row++){
		cout << "   " << (row + 1) << "  ";
		for (int col = 0; col < test[row].length; col++)
			cout << "  " << test[row][col] << "  ";
	}
}
Declaring arrays is like this:
 
char array[]; //Pay special attention to where those brackets went. 
so does that mean inside my displaySeats, it would be (char array[][])?
I also changed my "double" displaySeats to "void" displaySeats(char array[][]).
Topic archived. No new replies allowed.