#include <stdio.h>
int main()
{
char c = 'a';
int n = c ; //将c赋值给n
float f = c ; //将c赋值给f
double d = c ; //将c赋值给d
printf("%d\n",n);
printf("%f\n",f);
printf("%lf\n",d);
return 0;
}
为什么提交的时候说“请检查代码中是否包含c"?但是运行的结果又是对的,求解,谢谢。
#include<stdio.h>
int main()
{
char c = ‘a’
int n = c; //将c赋值给n
float f = c; //将c赋值给f
double d = c; //将c赋值给d
printf("%d\n”,n);
printf(“%f\n”,f);
printf(“%f\n”,d);
return 0;
}
应该是bug吧