请问你short &n是干什么用的??
我感觉你应该写成
typedef struct Mysturct
{
short n;
bool flag;
char *buf;
}MYSTRUCT ,* LPMYSTRUCT
你要是想分配
就
LPMYSTRUC lpMyStruct = new MYSTRUCT[1000];
......../
delete []lpMyStruct;
我感觉你应该写成
typedef struct Mysturct
{
short n;
bool flag;
char *buf;
}MYSTRUCT ,* LPMYSTRUCT
你要是想分配
就
LPMYSTRUC lpMyStruct = new MYSTRUCT[1000];
......../
delete []lpMyStruct;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货