How to Run c++ program on linux minjaro using terminal ,g++ compiler and nano editor.
Step 1.Click application launcher
Step 2. Click terminal
Step 3.Run nano editor on terminal by writing command on terminal
nano
Step 4. Write c++ program code as
#include
using namespace std;
int main(){
cout << "Hello World" << endl;
return 0;
}
Step 5. save file as hello.cpp
press CTR + O
Step 6.Exit Nano by pressing CTR + x
Step 7. Compile hello.cpp by command on terminal
g++ hello.cpp -o hello
Step 8. Run hello program by command
./hello
Step 9. Watch Result
