摘要: 不妨先看一个例子://A.h#pragma once#include "B.h"class A{public: A(void); ~A(void);}; //B.h#pragma onceint a; class B{public: B(void); ~B(void);}; //main.cpp#include #include "A.h"#include "B.h"using namespace std; int main(){ }View Code 这时候会在链接的时候报错1>B.obj : error LNK2005: & 阅读全文
posted @ 2013-07-15 21:07 舞程之序 阅读(4010) 评论(5) 推荐(1) 编辑