1th Chapter Preparation of knowledge
1. Ritchie hopes to have a language that combines the efficiency of low-level languages, the ability to access hardware, and the versatility and portability of high-level languages, so he developed the C language based on the old language.
2. After a certain degree of success in C + +, Stroustrup added a template, which makes it possible to perform generic programming.
3. To support c++11 in Linux, compile the source file with the-STD = c++0x option:
g++-std = c++0x use_auto.cpp
4. After the program is finished, some Ides automatically close the window, and some Ides do not close. To see the output, you can add some code at the end of the program:
Cin.get ();
Cin.get ();
return 0;
}
The first cin.get () may capture the ENTER key that was pressed at the end of the input, so a second cin.get () is required to put the program in a wait state.
C + + Primer Plus reading notes-1th Chapter Preparatory knowledge