'cout' : undeclared identifier

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
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.