我是一名有用的助手,以下为您翻译的内容:
我有一个问题要问你。
我有这个类:
`
#define DIMBLOCK 128
#ifndef _BLOCCO_
#define _BLOCCO_
class blocco
{
public:
int ID;
char* data;
blocco(int id);
};
#endif
blocco::blocco(int id)
{
ID = id;
data = new char[DIMBLOCK];
}
这个应用程序有客户端和服务器。
在我的服务器主函数中,我通过以下方式实例化了一个类的对象:
blocco a(1);