- Week 1
- 1.3 compile and link
#pragma once
只要在头文件的最开始加入这条指令就能够保证头文件被编译一次.
debug:
1.编译错误
2.链接错误
3.运行时错误 - 1.4 preprocessor-and-macros
只占一行 - 1.5 simple-input-and-output
- 1.3 compile and link
- Week 2
-
2.1 integer-numbers
答案为-32768 -
2.2 more-integer-types
-
2.3 floating-point-numbers
答案为0
-
怎么知道浮点数的步长
- 2.4 arithmetic-operators
浮点数默认是double
- Week 3:
- 3.1 if-statement
- 3.2-conditions
- 3.3-while-loop
- 3.1 if-statement
- Week 4:Data Structures
- 4.1-arrays
- 4.2-strings