Hi all,
i am using Microsoft Visual C++ 2010 Express
i am sure, a super easy question. i am just learning C++...and i am already stuck with this error...here the simple program
i admit i never used such initialisation and never heard of it so far, i used to writeCode:#include <iostream>
using namespace std;
int main()
{
int ai {5}; // Error : Missing ';' before {
cout << ai;
return 0;
}
why is the compiler complaining.Code:int ai = 5