Why do I get error "error C2065: 'cout' : undeclared identifier" even though I have included ?

Standard C++ library is implemented in its own namespace “std”. Make sure to add the statement
using namespace std;
in the beginning of your program or to qualify each Standard C++ library identifier with namespace std, for example, std::cout.

Leave a Reply

Your email address will not be published. Required fields are marked *