#include <iostream.h>
int main(void)
{
int size;
cout << "Enter array size: ";
cin >> size;
int data [size];
return 0;
}
When I compile, I get the following error:
Quote
Error E2313 test.cpp 9: Constant expression required in function main()
Can anyone enlighten me on how to circumvent this error?


Sign In
Create Account

Back to top









