C++ introduction tutorial – -2 basic syntax

A semicolon. In C programs, semicolons are statement terminators. (Note that only English characters, not Chinese characters) beginners often confuse Chinese and English.

Comment // Single line comment. That’s the interpretation of the code, the computer doesn’t recognize it, it’s just for people to see.

Multiline comment /* Multiline comment */

Cin int a,b,c; Cin >>a>>b; Cin >>c; // Enter c as a number

Cout int a,b; Char c; a=1; b=2; C = ‘c’; cout<

If you don’t have a problem, you can practice how to input and output.