-
C++ Help
Hi!
I'm trying to learn C++. I've just started reading tutorials on cprogramming.com
I'm having a few problems, can someone give me a little Hello World! script, or any other kind of script so I can stick it in my compiler and test it, just so I can see a working script so I know the basis of them?
I'd appreciate it, thanks!
Jordan :)
-
You no longer write scripts. You write programs.
Code:
#include <iostream>
using namespace std;
int main( int argc, char *argv[] ) {
cout << "Hello World!" << endl;
return 0;
}
-
phh, that hello world program is inferior.
Code:
#include <stdio.h>
int main(void) { return printf("Hello, world!\n"); }