PDA

View Full Version : [ubuntu] Need help with C++ code



SKYDOS
June 1st, 2009, 01:51 PM
i have this code (screen): http://s45.radikal.ru/i107/0906/44/428550d6e369.png
and error a little bit lower...
what's the problem?
thanks!

SKYDOS
June 1st, 2009, 02:02 PM
i relly need help...
i have downloaded all what i needed - gcc, g++, make, gdb...
but i have this stupid error :(

thomps
June 1st, 2009, 02:05 PM
cout belongs to the std namespace. Therefore you will need to either do one of the following:


using namespace std;

just below your includes but above main

or you can change cout to:


std::cout

SKYDOS
June 1st, 2009, 02:11 PM
cout belongs to the std namespace. Therefore you will need to either do one of the following:


using namespace std;just below your includes but above main

or you can change cout to:


std::cout

but why it's not working just with "linking" iostream.h library ?

thanks! now it's working.:popcorn: