Accelerated C ++ learning notes and questions ---- chapter 0 and chapter 0 of accelerated
I have mentioned a lot about C ++ before, and this book is also an entry-level book, so I plan to repeat it. the <character, control flow, and other parts in the early stage will not be described in detail. It is okay to record the problem.
So, starting from chapter 0.
Chapter 0 describes annotations, # include commands, main functions and functions, and escape characters of input return statements.
Below are some 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 ;}