|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
------------1.h-------------------
int a;
class test1
{
public:
test1(){a=5;}
};
-------------1.cpp--------------------
#include "1.h"
-------------2.h-----------------------
#include "1.h"
extern int a;
-------------2.cpp--------------------
#include <iostream.h>
#include "2.h"
void main()
{
char d;
test1* newclass=new test1();
cout<<a;
cin>>d;
}.
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
Put your OWN COOL signature here!
|
|