cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
'cout' : undeclared identifier
'cout' : undeclared identifier
May 26, 2013 at 7:05am UTC
myregm
(6)
I've a problem with my visual studio.
I use windows 7 64 bit and I installed microsoft visual studio 2010 on it.
For all the programs that I write, I have an error:
'cout' : undeclared identifier
What should I do?
Thank you.
Last edited on
May 26, 2013 at 7:07am UTC
May 26, 2013 at 7:08am UTC
Lachlan Easton
(699)
Whatever your learning c++ from is likely out of date. In modern c++ cout (and everything else in the standard libraries) is in the namespace std (google namespace std to read up). To use cout you should prefix it with
std::
Topic archived. No new replies allowed.