问题发生在“ _ULonglong”。它返回一个错误,指出它是未定义的。 Kinda在这个问题上停留了一段时间。
void clothes_adding(string type,string description,int quantity,string
colour,string size,double price)
{
int location=0; //1= found the location for adding the clothes
number_Clothes=number_Clothes+1; //increase the number of item in the system
by 1
//create a new template and putting all the data
newnode=new clothes();
newnode->id= "C00"+ to_string((_ULonglong)number_Clothes);
newnode->type=type;
newnode->description=description;
newnode->quantity=quantity;
newnode->colour=colour;
newnode->size=size;
newnode->price=price;
newnode->next=NULL;
newnode->back=NULL;
附带的库(例如“ climits”和“ windows.h”)有助于解决问题。