防止头文件重复包含

方式一:

#ifndef FILEH
#define FILEH
//这里写具体头文件内容
#endif

方式二:

#pragma once
//下面写具体头文件内容
发布了45 篇原创文章 · 获赞 0 · 访问量 987

猜你喜欢

转载自blog.csdn.net/qq_41985293/article/details/104167323