Word Count: 31
  • Post category:C++
  • Post last modified:2023-01-11

Reference

W3School – C++ Tutorial

Conditions check

Support these conditional check:

  • if
  • else
  • else if
  • (condition) ? expressionTrue : expressFalse
  • switch

Loops

  • while
  • for
    • for (int i = 0; i < 5; i++) { ……. }
  • foreach
    • for (int i : array or set) { ….. }