Problem with Hello World(Dev-C++)
I''m extemeley new at this(obviously) and I''m following the ''Teach Yourself C++ in 21 days'' online guide. I''m using Dev-C++, and typed out exactly what was shown in the example in the guide, but it turned up some stuff, I just took a couple of screenshots of it, instead of trying to explain.
http://img.villagephotos.com/p/2003-12/529922/err1.JPG
and
http://img.villagephotos.com/p/2003-12/529922/err2.JPG
The version of C++ in 21 Days that you''re reading uses the old iostream headers, but it still should have compiled normally (they look like warnings rather than errors) but if it didn''t compile anyway or if you want to get rid of those warnings, use
#include<iostream> //Note lack of ".h"using namespace std; //Make the std namespace global, otherwise you''d need to use std::cout and std::cin rather than just cout and cin
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement