C++ syntax and semantics