You want to install a C++ compiler in Ubuntu. You want to write a basic C++ program and run it. How do you do these things?
1. As root, install a C++ compiler with this command:
apt install g++
2. Create a basic program. Here is an example. Name this file hello.cpp and put this as the content:
using namespace std;
cout << "Hello from ContinualIntegration.com!" << endl;
3. Compile the code with this command:
4. Run the byte code with this command: