while(flag)
{
printf("请输入车辆型号:");
scanf("%s",info.vehicleModel);
printf("请输入厂商:");
scanf("%s",info.vendor);
printf("请输入车辆级别:");
scanf("%s",info.modelLevel);
printf("请输入座位数:");
scanf("%d",&info.deskNum);
printf("请输入排量:");
scanf("%lf",&info.quantity);
printf("请输入变速箱:");
scanf("%s",info.box);
printf("请输入车的颜色:");
scanf("%s",info.colour);
printf("请输入车辆价格:");
scanf("%lf",&info.price);
insertNodeByHead(list,info); //插入链表
printf("车辆型号\t厂商\t车辆级别\t座位数\t排量\t\t变速箱\t\t颜色\t价格\n");
printf("%s\t\t%s\t%s\t\t%d\t%lf\t%s\t\t%s\t%lf\n",info.vehicleModel,info.vendor,info.modelLevel,info.deskNum,info.quantity,info.box,info.colour,info.price);
printf("是否继续输入(1继续 0停止输入)?");
setbuf(stdin,NULL); //清除缓冲区
scanf("%d",&flag);
}