Hi, thanks a lot! BTW, everything is functioning quite well since then and I am learning(slowly of course:-P) via the gcc document and err.... Well, you know. Best regards, Yiming On Sun, 2014-07-13 at 14:45 +0530, Prathamesh Kulkarni wrote: > 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