Lesson 1

What Is C++?

Students write, compile, run, edit, and debug a first C++ program before using ESP32 hardware.

Whiteboard-style edit save compile run cycle

Video

Lesson video

Learn how source code, the compiler, and a runnable program fit into the edit, compile, run, and fix cycle.

Students practice

  • Explain source code, compiler, program, compile, and run.
  • Identify main, braces, cout, semicolons, comments, and return 0.
  • Compile and run Hello World.
  • Edit printed output and run the program again.
  • Complete a short skill check.

Starter code

#include <iostream>

using namespace std;

int main() {
    cout << "Hello, world!" << endl;
    return 0;
}

What to turn in

  • A program that compiles and runs.
  • Edited terminal output.
  • One comment explaining the program.
  • The completed skill check or teacher-approved evidence.