I've said a lot about C + +, and this book is an entry-level book, so I'm going to go over it. Pre-< characters, control flow and other parts will not be introduced in detail, the main record under the key is OK.
So, start with the 0th chapter.
In the 0th chapter, the main content of this paper is to introduce the comments in the example of Hello World, #include命令, main function main and function, and input return statement escape character.
Here are some of the questions:
0-2
#include <iostream>using namespace Std;int main () {cout << ' this (\ ') is a quote, and this (\ \) is a backslash ." << Std::endl;return 0;}
0-4
#include <iostream>int main () {std::cout << "//a small C + + program\n" "#include <iostream>\n" "\ n" "int Main () \ n "" {\ n "" \tstd::cout << \ "Hello, world!\" << std::endl;\n "" \treturn 0;\n ""} "<<std::endl; return 0;}
0-9
int main () {}
0-10
#include <iostream>intmain () {std::cout<< "hello,world!" <<std::endl;return0;}
Accelerated C + + learning notes and----0th Chapter