• Advertisement

Archived

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

help

This topic is 6000 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 just started learning c++ so i got a ''teach yourself in 24 hours'' book and it came with a cs that had the tuturals already done and a djgpp compiler(i think its called djgpp) but when i did the first tutural,the hello world one i do just as it says dont know how to build helloworld.o from c:/djgpp/bin/helloworld but it does work when i load up the exact same thing only its the tutural. and when i type its all in yellow but in the tutural there all differnt colors. can someone plz help.thanks.

Share this post


Link to post
Share on other sites
Advertisement
I''m not familiar with your editor or the book your refering to but you may want to save the file as helloworld.cpp

The .cpp extension informs the compiler it''s C++. A .c extension informs that it is a C translation unit. (There''s .h and .hpp, etc but I don''t want to throw too much at you right now)

YAP-YFIO
-deadlinegrunt

Share this post


Link to post
Share on other sites

  • Advertisement