And C++ code can be compiled with g++, e.g.
g++ hello.cpp
It is usual to at least specify an output file (or the output file will be a.out):
gcc -o hello hello.c
g++ -o hello hello.cpp
If I may give you an advice: if you start C++ programming it may be interesting to look at the Qt toolkit. In contrast to what many people believe this is not just a widget toolkit, but it is a fairly complete class library that has classes for regular expressions, I/O, threads, XML, etc. plus some STL-like container classes. Qt is available from the
kde diskset, and includes excellent documentation (via
assistant) and a GUI designer (
designer). There also is a very good book in PDF format:
http://phptr.com/content/images/0131...hette_book.pdf