Hi, I am new to C++ and in need of a little help.
I am trying to output a two dimension array of student names, "n[][30]". The names that are being inputed are: Corey, David, Kacey, Terry
The code I have at the moment is:
#define STUDENTCOUNT 4
.
.
.
.
cout << "Name" << endl;
for(int i = 0; i < STUDENTCOUNT; i++)
{
cout << n[i][30] << " \n";
}
The output that I get is
Name
D
K
T
8
Any ideas on why I am getting this output would be appreciated.