Compiling C++ Program
$ CC hello.cc $ a.out Hello World $ |
- The command for invoking the AT&T C++ translator in a UNIX environment
is CC. The argument to this command (hello.cc) is the name of the file which
contains the program. As a convention, the file name should end in .c, .C, or
.cc. (This ending may be different in other systems.) - The result of compilation is an executable file which is by default named
a.out. To run the program, we just use a.out as a command. - This is the output produced by the program.
- The return of the system prompt indicates that the program has completed its
execution.
0 comments:
Post a Comment