关于结构体跟list之间的用法错误
小马 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