Problem with Hello World(Dev-C++)

Started by
2 comments, last by DarkSpider 20 years, 4 months ago
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
You have been Matty-handled. Next!
Advertisement
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


-~-The Cow of Darkness-~-
omitt the .h from your header include statment.
*dances* thanks!
You have been Matty-handled. Next!

This topic is closed to new replies.

Advertisement