The "C + + Primer" that started reading yesterday is really good. I hope this week to read, take notes every day, in order to review later.
The main function returns a value to the operating system operating system through the value returned by the main function to determine whether the program has successfully executed the main function
so that the only function that is explicitly called by the operating system the main function return value must be of type int The return value type must be the same as the return type of the function CIN standard input cout standard output CERR standard error Clog object is used to generate general information about program execution Endl is
called the manipulator (manipulator
) output line-wrapping effect, and
refreshes the buffer associated with the device (buffer) std:: namespace annotations are worse than no comments on non-nested errors because they mislead the latter The dot operator (.) applies only to objects of the class type: The left operator must be an object of the class type, and the right operator must specify a member of that type (not an object or a value) Smalltalk and Python check the type of object in the statement
C + + is a static type (statically typed) language, which performs type checking at compile time. before you can use a name in a program, you must first tell the compiler the type of the name. Static type checking can help us to find errors earlier.
one of the main goals of C + + is to allow programmers to customize types, and these types are as easy to use as built-in types.
C + + Primer notes (i)