Jump to content

  • Log In with Google      Sign In   
  • Create Account

help


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 bardock   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 August 2001 - 03:29 AM

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.

Sponsor:

#2 deadlinegrunt   Members   -  Reputation: 123

Like
Likes
Like

Posted 17 August 2001 - 04:24 PM

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

#3 bardock   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 August 2001 - 07:28 PM

yep thanks it works now

Hello World!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS