Learn
Compile & Execute
Code β Save β Compile β Execute
C++ is a compiled language. That means that to get a C++ program to run, you must first translate it from a human-readable form to something a machine can βunderstand.β That translation is done by a program called a compiler.
When you program in C++, you mainly go through 4 phases during development:
- Code β writing the program
- Save β saving the program
- Compile β compiling via the terminal
- Execute β executing via the terminal
And repeat (debug the errors if needed).
Note: Up until now, weβve been doing the magic for you; Step 2, 3, and 4 were all done by simply pressing the Run button.
Instructions
Letβs try compiling and executing using the terminal.
Click Next to continue.