Expected unqualified-id before ‘[‘ token

This is C++, not Java! Declare arrays like this:

int myCashierNums[1000];
int myOrderNums[1000];

Please note that the arrays in C++ must have a size at compile time. In the above example, it is 1000.

Leave a Comment