1. All C ++ProgramAll must have a main () function, which is the start of program execution.
2. All variables must be declared before use
3. c ++ supports many data types, including integer and floating point types.
4. The output operator is <, used with the cout statement to output information to the screen.
5. The input operator is>, used with the CIN statement to read information from the keyboard
6. The program ends at the end of the main () function.
7. All functions are mutually independent entities. functions cannot be nested with each other, but they can be called with the exception of the main () function)
8. Function Representation: The function name is followed by parentheses.
9. Form of calling a function: first, the function name, followed by a pair of parentheses, and finally a semicolon
10. When a function requires a parameter, the parameter is placed in parentheses after the function name.
11. When you use a library function, you must include the header file of the function in the program, because the header file provides a library function prototype.
12. The actual parameter (argument) is the value passed to the function when calling the function. The formal parameter (parameter) is the variable defined by the function to receive the actual parameter.
13. The term "actual parameters" (also referred to as parameters) in C ++ refers to the value used to call a function, and the variable that receives these values is called a formal parameter. In fact, parameters with actual parameters are usually called parameterized functions)
14. Remember that void is used only when the function does not return a value.
15. The standard C ++ does not use the "Default Integer type". Therefore, you should specify the return value type for each function.
16. If select between two execution paths
17. ++ is the incremental operator to add 1 to the operand. -- it is the decrement operator to subtract one from the operand.
18.CodeA block is a logical unit of related statements. It is implemented using code blocks.AlgorithmIt can make the idea of the algorithm clearer and more efficient.
19. We recommend that you use the indent orchestration format when writing a program: indent the code after the braces begin. After the braces are completed, the Code indent orchestration format is restored to the format before the braces begin.
20. Remember, the keyword size is meaningful. C ++ is a case-sensitive language that requires all keywords to be lowercase.