2019年3月15日

类的向前声明

摘要: 核心:头文件相互引用,一个#include,另一个class CC++头文件相互#include时最好是:(1)在"CA.h"中 #include "CB.h".(2)在"CB.h"中用类的前向声明: class CA;(3)最好加上头文件卫士( #ifndef *** #define *** #e 阅读全文

posted @ 2019-03-15 20:47 杜鹃醉鱼鱼 阅读(226) 评论(0) 推荐(0)

导航