titbits from the world less travelled

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.

posted by admin in Uncategorized and have No Comments

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.

posted by admin in Uncategorized and have No Comments