字符型数据
根据小甲鱼的视频有个例题3.12:#include <stdio.h>
void main()
{
float PL = 3.14159;
int s, r = 5;
s = r * r PL;
printf("s = %d\n", s);
}
warning C4305: 'initializing' : truncation from 'const double ' to 'float ' 报错提示
error C2146: syntax error : missing ';' before identifier 'PL'
#include <stdio.h>
void main()
{
float PL = 3.14159;
int s, r = 5;
// s = r * r PL;
s = r * r * PL;
printf("s = %d\n", s);
} 人造人 发表于 2017-4-27 16:33
#include
void main()
粗心了
页:
[1]