64,654
社区成员
发帖
与我相关
我的任务
分享
#include "Test.h"
CBit::CBit(int bit)
{
}
CBit::CBit( int axis,int act)
{
}
CBit::~CBit(void)
{
}
void CIO::get_in(CBit &BIT)
{
}
Test.h
#pragma once
#define a 2,1
class CBit
{
public:
~CBit(void);
CBit( int bit);
CBit( int axis,int act);
};
class CIO
{
public:
void get_in(CBit &BIT);
};
调用
CIO in;
in.get_in(CBit(a));
应该就这样了吧,简单的测试