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
stdafx.h shall be the first include directive in your source file.
stdafx.h
Switch files and convert the second include to <>, as other suggested.
<>
#include "stdafx.h" #include
See this post for more information.