大众信息网

为什么我的程序在某个位置就终止了?格式没错,符号没错。

关注:208  答案:2  手机版
解决时间 2021-08-02 09:45

struct BOOKINFORMATION
{
int number;
char press[20];
char name[20];
float price;
}b[20];
void Input()
{

l++;
printf("Input the number\n");
scanf("%d",&b[l].number);
printf("Input the name\n");
scanf("%s",&b[l].name);
printf("Input the price\n");
scanf("%*c%*c%*c%f",&b[l].price);
printf("Input the press\n");
scanf("%*c%*c%*c%s",&b[l].press);

}
最佳答案
e - -,你在用什么的时候错误了,什么操作?你什么都不说,就发个数据报告出来,鬼知道你什么问题
全部回答
再问问上仔细查一下吧,有好多类似的问题!!
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!