> Compiling C++ Program ~ Online tutorial

Compiling C++ Program


Compiling C++ Program

$ CC hello.cc

$ a.out

Hello World

$
Annotation
  • 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.
Buy It Now





Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: