file.h的内容:
class CMy
{
int a;
public:
CMy(int x);
void Get();
};file.cpp的内容:
#include <iostream.h>
#include "file.h"CMy::CMy()
{
a=x;
}
void CMy::Get()
{
cout<<"okkkkk"<<endl;
}main.cpp的内容:
#include "file.h"
void main()
{
CMy zxf(9999);
zxf.Get();
}此程序错在哪儿?解决有分,下午结帖。