Archived

This topic is now archived and is closed to further replies.

Problem with Hello World(Dev-C++)

This topic is 5109 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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. [url]http://img.villagephotos.com/p/2003-12/529922/err1.JPG[/url] and [url]http://img.villagephotos.com/p/2003-12/529922/err2.JPG[/url]

Share this post


Link to post
Share on other sites
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



Share this post


Link to post
Share on other sites