I am using visual studio 2013 express and MSVC compiler.
I get an error on executing the following lines of code.
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
return 0;
}
It says expression must have a constant value on the line on which I declare array a
.
I searched and found this c++ array - expression must have a constant value
It says you need to turn on a compiler option to allow it. How do I set that option in Visual studio express?