So, I have this question. Why does cout throws
error C2065: \'cout\' : undeclared identifier
I am using Visual Studio 2012 as an IDE and I
If you use #include with the <> instead of "" then it should work. Right now, the compiler doesn't know where to find the iostream library.
#include
Also, you might want to change cout<<"example"; to cout<<"example"< for a new line so that it formats correctly.
cout<<"example";
cout<<"example"< for a new line so that it formats correctly.