不知道哪有問題,還有就是%lf是啥
#include <stdio.h>
int main()
{
? ? char c = 97;
? ? int? n = c;
? ? float d = c:
? ? double m = c;
? ? printf("%d\n",n);
? ? printf("%f\n",d);
? ? printf("%lf\n",m);
? ? return 0? ??
}
#include <stdio.h>
int main()
{
? ? char c = 97;
? ? int? n = c;
? ? float d = c:
? ? double m = c;
? ? printf("%d\n",n);
? ? printf("%f\n",d);
? ? printf("%lf\n",m);
? ? return 0? ??
}
2020-10-16
舉報(bào)
2020-11-07
%lf是輸入輸出格式說明符,按double型進(jìn)行輸入或輸出。
2020-10-16
d=c后面是;不是:
“%lf“是輸入輸出格式bai說明符,按double型進(jìn)行du輸入或輸出
2020-10-16
float d=c; 這里分號(hào)你用的是中文的
printf("%lf\n",m);這里多個(gè)l
return 0; 這里有個(gè)分號(hào)沒打