Alternative to Expression must have a constant value
The expression must be constant at compile time. Your code uses a run-time constant. A compile time constant would look like this:const int x = 5;Point *Room[x]; // OK hereTo create an array at runtime, use the new operator:Point *Room = new Point[size];// Use Room here// ...//...
Top NewsInsider News free each morning.