Back to course

Comments and Syntax Rules

C++ Masterclass: From Zero to Hero

Comments

  • Single line: // text
  • Multi-line: /* text */

Syntax

  • Statements end with a semicolon ;.
  • C++ is case-sensitive (Main is not main).
  • Code blocks are defined by { }.