编程真难呀还是不会 求教
#include <stdio.h>#include <math.h>
void main()
{
double x,s;
printf("input numder;\n");
scanf("%f",&x);
s = sin(x);
printf("sin of %lf is%lf\n', x,s);
}
--------------------Configuration: Hool - Win32 Debug--------------------
Compiling...
Hool.c
d:\c语言练习\hool\hool.c(11) : error C2001: newline in constant
d:\c语言练习\hool\hool.c(12) : error C2143: syntax error : missing ')' before '}'
执行 cl.exe 时出错.
这有又是哪里错了
各位大大求教呀!
printf("sin of %lf is%lf\n', x,s);中反引号打成了单引号淡定,淡定,淡定…… 强烈支持楼主ing……
页:
[1]