From charlesreid1

Revision as of 06:46, 5 October 2010 by Admin (talk | contribs) (→‎C++)

C++

HelloWorld.cc:

#include <iostream>
 
int main()
{
     std::cout << "Hello, world! This is C++.\n";
}

To run it:

$ g++ HelloWorld.cc -o hello.x
$ ./hello.x