Jump to content
  • Advertisement


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


Problem with Hello World(Dev-C++)

This topic is 5417 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!