我有一个这样的课程:-
class Con
{
public:
struct MachineList
{
BSTR AccountId;
BSTR MachineId;
BSTR Make;
char* Make1;
BSTR Model;
char* Model1;
BSTR SerialNumber;
BSTR IpAddress;
char* IpAddress1;
BSTR Port;
int Port1;
BSTR LocationCode;
} machinelist[100] ;
int w;
} ;
我创建了一个Con
类对象Con m_con;
我还有一堂课Test
class Test
{
public:
void fun();//i want to pass the object of the structure that i created in Con
//what arguments should i pass in fun function?
};