Linux GNU C++

To start writing a C++ program in the Linux environment, use an editor such as Pico and name the file with the .cpp extension:

Type your program in the Pico editor:

Press CTRL O to save your work, and CTRL X to exit Pico.

Type g++ followed by the program file name to compile your program, this is when you would be alerted of any errors or warnings.

If there are no errors, run the program by typing ./a.out (the name of the file to which the executable code is sent)