The cpp I bought today has been re-learning CPP since today. Now I find that the books published by the school are not exactly the same.
<Em> # include <stdio. h> // pre-processing command int main ()/* The first called function can be compared to a house door (), which indicates that main is a function. int indicates the type of the returned value */{int num;/* declaration statement. It declares two things. One variable named num and the other variable named int indicates that the life variable is an integer. Int Is a keyword. Num is a identifier */num = 1; // assign printf ("I am simple") to the variable. // call the printf function. () parentheses indicate that printf is a function name. Main calls the printf function string as the function parameter printf ("computer"); printf ("WY favority number is % d", num); Return 0; // Return Statement} // The curly arc indicates the boundary of the main function. </em>
Below are some small knowledge points
Features of a C Language
1 portability
2. Powerful functions and flexibility
3 For programmers
Basic Principles of the second computer
Commands-translation commands-execution commands-storage commands
Human-Computer Interaction Process: User-application software-Operating System-hardware equipment
Step 7 of C language application
1. Define the program objectives
2. Design Procedure
3. write code
4. Compile
5 testing and debugging
6. Maintain and modify programs
7. Conclusion
CPP learning notes 1 a simple small program and some knowledge points