scanf("%f",&days); >>>>>scanf("%d",&days);
C语言忘光咯.郁闷
scanf("%f",&days); 该是scanf("%d",&days);
我看了下,没问题,一个是你的编辑器出错,复制这个代码,再新建一个C文件,粘贴里面再编译、链接、测试!