新人小白提问,我倒底是什么问题
#include<stdio.h>#include<math.h>
int main()
{double n=50,r=1,a=3.141 59/n,s;
s=n*r*r*sin(a);
printf("%tf,s");
return 0;
}
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
D:\Microsoft Visual Studio\Common\MSDev98\Bin\Cpp1.cpp(4) : error C2143: syntax error : missing ';' before 'constant'
D:\Microsoft Visual Studio\Common\MSDev98\Bin\Cpp1.cpp(4) : error C2065: 's' : undeclared identifier
D:\Microsoft Visual Studio\Common\MSDev98\Bin\Cpp1.cpp(5) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
执行 cl.exe 时出错.
Cpp1.obj - 1 error(s), 0 warning(s)