- 博客(2)
- 收藏
- 关注
转载 C++头文件注意事项
本类被引用时 使用宏#pragma once或者#ifndef #define ... #endif ,确保本类只会声明一次,做好include guard 引用其他类时 头文件中使用前置定义(forward declaration)代替#include 不得不包含其他头文件时,尽量写在...
2017-10-31 09:25:00 150
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
本类被引用时 使用宏#pragma once或者#ifndef #define ... #endif ,确保本类只会声明一次,做好include guard 引用其他类时 头文件中使用前置定义(forward declaration)代替#include 不得不包含其他头文件时,尽量写在...
2017-10-31 09:25:00 150
TA创建的收藏夹 TA关注的收藏夹
TA关注的人