大家帮我看看这道题那里出错了#include #include void main(){double y;int x,m;for (y=1;y>=-1;y-=0.1){ m=scos(y)*10 for (x=1;x
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/09 02:01:30
![大家帮我看看这道题那里出错了#include #include void main(){double y;int x,m;for (y=1;y>=-1;y-=0.1){ m=scos(y)*10 for (x=1;x](/uploads/image/z/11545068-12-8.jpg?t=%E5%A4%A7%E5%AE%B6%E5%B8%AE%E6%88%91%E7%9C%8B%E7%9C%8B%E8%BF%99%E9%81%93%E9%A2%98%E9%82%A3%E9%87%8C%E5%87%BA%E9%94%99%E4%BA%86%23include+%23include+void+main%28%29%7Bdouble+y%3Bint+x%2Cm%3Bfor+%28y%3D1%3By%3E%3D-1%3By-%3D0.1%29%7B+m%3Dscos%28y%29%2A10+for+%28x%3D1%3Bx)
x͑N@_e7
״}֤ [@
7X`@kȦ hmP_gh|E@d23?7(\<_eqP3M(BA5-MQ8a?&P+D):| =BtO(@ȹ="9\N7A.%)u%JQ%?X5Ȗg}MiE+T+λ]Z ,8iF H_ 旸TLS*d}G{+øJO0:["&bTUҔ1ɡx#Dl4t_]"v q%%Veqo7Z&e
大家帮我看看这道题那里出错了#include #include void main(){double y;int x,m;for (y=1;y>=-1;y-=0.1){ m=scos(y)*10 for (x=1;x
大家帮我看看这道题那里出错了
#include
#include
void main()
{
double y;
int x,m;
for (y=1;y>=-1;y-=0.1)
{
m=scos(y)*10
for (x=1;x
大家帮我看看这道题那里出错了#include #include void main(){double y;int x,m;for (y=1;y>=-1;y-=0.1){ m=scos(y)*10 for (x=1;x
错在这句
m=scos(y)*10
将它改为
m=cos(y)*10; //没有 scos 这个函数,应该是 cos ,另外最后加一个分号
补充:打印不出象例子里说的弧度,是因为程序中的 printf("") 应该是 printf(" ") 引号里面是一个空格.