can some one please point out whats wrong with this code? i tried to copy it exactly from this site i'm learning from, but my compiler is telling me something else. here's the code::
__________________________________________________________________________________
#include <iostream>
using namespace std;
int main()
{
char caaaArray[][3][5] =
{
{
{'B', 'C', 'A', 'B', 'D'},
{'A', 'D', 'B', 'A', 'B'},
{'C', 'C', 'A', 'B', 'C'},
}
{
{'A', 'B', 'A', 'A', 'C'},
{'B', 'C', 'A', 'C', 'F'},
{'B', 'B', 'A', 'B', 'D'},
}
}
for (int iCourse = 0; iCourse < 2; ++iCourse)
{
cout << "Course #" << iCourse << endl;
for (int iExam = 0; iExam < 3; ++iExam)
{
for (int iStudent = 0; iStudent < 5; ++iStudent)
{
cout << caaaArray[iCourse][iExam][iStudent] << " " << endl;
}
cout << endl;
}
}
char o;
cin >> o;
return 0;
}
________________________________________________________________________________
here's a couple of jpegs that explain further.
http://postimg.org/image/tqp86oh47/
http://postimg.org/image/c1csr59q1/