注册 登录
编程论坛 新人交流区

关于结构体跟list之间的用法错误

maguic 发布于 2007-11-03 16:55, 546 次点击

小马 16:53:23
struct storage
{
string type;
int count;
// storage *next;
};

typedef list<storage> LISTORAGE;
typedef list<storage> STO;
小马 16:53:30
LISTORAGE::iterator j;
// pchange=base;
storage b={" ",1};
小马 16:53:37
error C2552: 'b' : non-aggregates cannot be initialized with initializer list

1 回复
#2
high客2007-11-03 17:14
不懂~~~~~~~~~~~
1