From: 0wn 4 skill
Ok, well thankyou Boberman! :D I will procede with my ambition :p lol
Hello World :D :
#include <iostream>
using namespace std;
int main(void)
{
cout<<"Hello World! Well, this is my first C++ Program lol. Ownage";
int f;
cin >> f;
}
:). You probably should end your cout with a newline, that can be done like this,
cout << "Hello World …\n";
or this
cout << "Hello World .." << endl;
Also, while not so important in this program, you introduce the possibility for a buffer overflow by doing cin >> f. where f is an int. You should use a string instead to avoid that problem. (and not a char*, but an actual string object)
One more thing, Don't forget to include indentations. Believe me, proper indentation will save your life some day!
You should also return something from your main. 0 is generally what everyone returns, it means your program finished successfully. By not returning anything, the OS doesn't know if your program failed or not. This can be important in some cases.
@Hermpie
You need to run it through a C++ compiler like g++. your command line should be something like "g++ file.cpp"