Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ newbie
Name: goaliemike Date: February 24, 2005 at 13:22:47 Pacific OS: xp pro CPU/Ram: 512 ddr amd xp 2000+
Comment:
Hey ive lerned java, basic and ms visual J++. Now im lerning C++ and usually the first exercise is to display a window with the classic Hello World. Im using Dev C++ and the first basic thing dosnt work. whats worng in this; the said to try the 2nd if this didnt work but no sucess
#include <iostream.h>
int main() { count <<"Hello World!\n"; return 0; }
now here is the 2nd
#include <iostream.h>
int main(); int main() { count <<"Hello World!\n"; return 0; }
War sucks, but the sound is good and WE are the DJ's
0
Response Number 3
Name: BlueRaja Date: February 25, 2005 at 18:24:05 Pacific
Reply:
Ignore Dark: 1. int main(); is the declaration (not the definition). Although I don't know why it was there, it's perfectly legal. 2. the std namespace is only used when using the standard iostream library; "using std::cout" is not necessary when using "#include <iostream.h>"
Summary: hi to all,im very much interested studying c++ but my problem is when i compile and run the sample code like the "simple hello world" program my compiler compiles the code but i cannot see the output ...
Summary: Hi. I made a few posts here before. Some of you may remember me.(I'd hope so, considering my posts are still on the first page :) ) I started attempting C recently(probably against my better judgement...
Summary: disclaimer: C++ newbie here... I want to be able to have my code delete a file from the current directory. For example: char x[9]="file.exe"; system("del" x); The reason I dont just put system("del...