呃、抱歉,是我打错了。
- -!scanf("%d,%d,%d",&a,&b,&c)
运行时候输入是:22,22,22再按enter
另外,我值得是这个问题与程序没关,如果要写源程序的话。可以帮我看下么?
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int day,year,month,leap;
loop:
{
printf("please input The data in this way:year,month,day\n");
scanf("%d,%d,%d",&year,&month,&day);
printf("Please make sure that you input data!YorN?");
printf("year is %d,month is %d,day is %d",year,month,day);
scanf("%d",&leap);
}
if(leap==N)
{
goto loop
}
.........../*这里我就不写了,太多了,其实只是scanf函数我想问问为什么那样输入不行*/
...........
...........
}