Compile C++ on Linux using g++ compiler
Create a C++ program using vi editor on Linux
Launch terminal and run vi program.cpp command. It will create editable file with name 'program.cp'
Create "Hello World" Program in C++
Write C++ code which prints "Hello Word" on console
Compile using g++ and Run executable ./a.out
When a .cpp file is compiled using g++, then by default executable with name a.out is created, this executable can be run like ./a.out command.
Other Categories
MCQ on C Programming MCQ on C++ Programming Basic Computer Questions Solved C programs Solved C++ programs