| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
#include <stdio.h> 
#include <math.h> 
 
void main() 
{ 
        double x,s; 
         
        printf("input number:\n") 
        scanf("%1f", &x); 
        s=sin(x) 
        printf("sin of %1f is %1f\n",x,s); 
} 
 
我在打 
      scanf("%1f", &x);   
         printf("sin of %1f is %1f\n",x,s);   提示编译不了,可是我自己发现不了哪里有打错的地方,请指教。  
 
C:\Users\wb-xy217071\Desktop\main.c        In function 'main': 
9        2        C:\Users\wb-xy217071\Desktop\main.c        [Error] expected ';' before 'scanf' 
11        2        C:\Users\wb-xy217071\Desktop\main.c        [Error] expected ';' before 'printf' 
28                C:\Users\wb-xy217071\Desktop\Makefile.win        recipe for target 'main.o' failed 
 |   
 
 
 
 |