You can run a C++ program in an IDE of your choice. One simple way to get started is to use a web-based IDE.
- Go to https://repl.it/.
- Create an account and log in.
- Click + New repl.
- Select C++ for the language.
- Click Create Repl
- Paste the below code into main.cpp
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
- Click the Run button at the top.
- You should see the Console print out the following information: