头文件
防止头文件重复包含
将头文件包含在
#ifndef xxxx
#define xxxx
.....
#endif
这里的xxxx通常是\_文件名大写\_,不要重复使用这个宏定义。
兼容性
32位和64位兼容
不要使用long,使用long long。
将头文件包含在
#ifndef xxxx
#define xxxx
.....
#endif
这里的xxxx通常是\_文件名大写\_,不要重复使用这个宏定义。
不要使用long,使用long long。