新手不懂哪里出错“求指点”
#include<stdio.h>#define PI 3.14;
int main()
{
double r,s;
r=20.0;
s=PI*r*r;
printf("s=%f\n"s);
return 0;
}
Compiling...
8888.c
C:\Users\HP\Desktop\8888.c(7) : error C2100: illegal indirection
C:\Users\HP\Desktop\8888.c(7) : warning C4552: '*' : operator has no effect; expected operator with side-effect
C:\Users\HP\Desktop\8888.c(8) : error C2146: syntax error : missing ')' before identifier 's'
C:\Users\HP\Desktop\8888.c(8) : error C2059: syntax error : ')'
执行 cl.exe 时出错.
8888.exe - 1 error(s), 0 warning(s)