Recommendation - If you have no idea what a computer program is please navigation to the programs tab and read the first section the Basics of a Program.
To run a cpp file you will need a compiler. The most common one is the g++ compiler.
Here are some soucres to help install g++
https://linuxconfig.org/how-to-install-g-the-c-compiler-on-ubuntu-18-04-bionic-beaver-linux
https://www.instructables.com/id/How-to-Install-MinGW-GCCG-Compiler-in-Windows-XP78/ (Start on step 2)
These commands must be done in the directory of your cpp file
To run a cpp file you will need a compiler. The most common one is the g++ compiler.
Here are some soucres to help install g++
https://linuxconfig.org/how-to-install-g-the-c-compiler-on-ubuntu-18-04-bionic-beaver-linux
https://www.instructables.com/id/How-to-Install-MinGW-GCCG-Compiler-in-Windows-XP78/ (Start on step 2)
These commands must be done in the directory of your cpp file
Compile Commands