- Now that we saw how to compile C programs, the transition to C++ programs is rather simple. All we need to do is use a C++ compiler, in place of the C compiler we used so far.
- So, if our program source is in a file named http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code1.cccode1.cc ('cc' to denote C++ code. Some programmers prefer a suffix of 'C' for C++ code), we will use a command such as the following:
$g++ code1.cc -o code1