[fwyzard@localhost test]$ cat test.cc #include <iostream> int main (void) { std::cout << "It works!" << std::endl; return 0; }
[fwyzard@localhost test]$ g++ test.cc -o test [fwyzard@localhost test]$ ./test It works! [fwyzard@localhost test]$
Note: the changes I've made to your code are purely aesthetycal - a "\n" after the cout and an exit coe of 0 indicating success...