On Sun, Jul 13, 2014 at 8:55 AM, Yiming CHU <zy14840@xxxxxxxxx> wrote: > Dear GCC team, > > I am really a newcomer, so I am wondering how to compile this source > code in the attachment. Hi, Make sure you have g++ installed. If you use ubuntu, this can be done by: sudo apt-get install g++ if you use linux/command-line, type the following command to compile 1.cc: g++ 1.cc This will create executable called a.out Run the program by: ./a.out btw it's a good idea to compile with full warnings turned on, so i would compile with: g++ -Wall -Wextra 1.cc Thanks, Prathamesh > > Regards, > Yiming CHU