C++ Beginner · exercise 01
Toolchain & first build
Compile and run your first program, and print one line exactly.
C++ Beginner lesson 01Guided steps
- 1.Include <iostream>, the header that declares std::cout.
- 2.Inside main, print the required line, ending with a newline.
- 3.Return 0 so the shell sees a successful exit status.
- 4.Press Run: your code is compiled with g++ and the real program output is compared with the expected output.
Your code
Your code is saved in this browser after every run and restored next time.