According to my C++ textbook, the following expression:
cout << "Enter number of students\n";
cin >> number;
int score [number];
Is an ILLEGAL expression. I cannot use a variable for the array size.
Why can't I do this? (I'm not looking for an alternative, I haven't gotten into pointers, vectors etc, but I want to understand this behavior.)