被这种类型引用问题搞得头大。。。谁来彻底解决下。。
//头文件1
#ifndef EMPLOYEE
#define EMPLOYEE
class C_Employee_Info
{
//。。。
}
#endif
//头文件2
#ifndef PRINT_WINDOWS
#define PRINT_WINDOWS
#include <iostream.h>
#include "employee.h"
class C_Print_Windows{
public:
void Print_Caption();
void Print_Employee(C_Employee_Info* p); //ERROR
protected:
};
#endif
打ERROR的标志死都不给我编译过去,提示identifier 'C_Employee_Info'错误。