Jump to content

Home

C++ Newbie


talldudeX

Recommended Posts

Yep, that's me...a C++ newbie...and I'm already having problems.

Whenever I try to compile a simple hello world program, it doesn't work for some reason. Yes, I do have a compiler.

 

#include <iostream.h>

 

int main()

{

cout << "Hello world!\n";

 

return 0;

}

 

Can anyone help me out here? Anyone know where to find some good C++ tutorials or games? Thanks!

Link to comment
Share on other sites

Originally posted by talldudeX

Yep, that's me...a C++ newbie...and I'm already having problems.

Whenever I try to compile a simple hello world program, it doesn't work for some reason. Yes, I do have a compiler.

 

#include <iostream.h>

 

int main()

{

cout << "Hello world!\n";

 

return 0;

}

 

Can anyone help me out here? Anyone know where to find some good C++ tutorials or games? Thanks!

 

 

 

sounds like a personal problem:D

Link to comment
Share on other sites

Originally posted by Ewok Hunter

hmm, do you really[/b need to move to the next line, why not just remove the /n and see if that helps? [/b]

 

yeah you dont need to move to the next line at all, but it really dont matter cus there isnt anything else being outputed

 

BUT!! are you putting in the #include <iostream.h> in the beginning of your code

cus cout will only work with that header file

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...