标题:师兄们,求解,字符这的改错
取消只看楼主
YE呦呦
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2013-3-16
结帖率:20%
 问题点数:0 回复次数:0 
师兄们,求解,字符这的改错
void add()      /*增加模块*/
{
         int sum,i;
         int flag=0;
         char choice;
         system("cls");
         printf("\n\n **************** 添加车辆信息*******************\n");
       do
       { cars[i].num=++sum;
         printf("\n                车辆名称:");
         scanf("%s",cars[i].name);
         printf("\n                车辆类型:");   
         scanf("%s",cars[i].type);
         printf("\n                车辆颜色:");   
         scanf("%s",cars[i].colour);
         printf("\n                车辆数量 :");
         scanf("%s",cars[i].count);   
         printf("\n                车辆价格:");
          scanf("%s",cars[i].price);
         printf("\n                车辆备注:");
         scanf("%s",cars[i].beizhu);
           printf("\n                要继续吗?(Y/N)");
         choice=getch();
          if (choice=='y'||choice=='Y')
          {    printf("\n                继续!\n");
               i++;
              flag=1;
          }
         else flag=0;
       }while(flag==1);N=i+1;    (error C2106: '=' : left operand must be l-value)
    printf("please press any key to menu:");
        getch();  
        return ;
}
搜索更多相关主题的帖子: system choice 信息 
2013-06-20 17:35



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-415652-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.037673 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved