标题:新手求教:: `sin' was not declared in this scope
取消只看楼主
ly02
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2012-2-15
 问题点数:0 回复次数:2 
新手求教:: `sin' was not declared in this scope
#include
#include
main()
    {
    double x,s;
   
    printf("input number:\n");
   
    scanf("%lf",&x);

    s=sin(x);
   
    printf("sine of %lf is %lf\n",x,s);
    }

[Error] C:\Users\Administrator\Documents\C-Free\Temp\未命名1.cpp:11: error: `sin' was not declared in this scope
搜索更多相关主题的帖子: 命名 Documents declared include 
2012-02-16 10:51
ly02
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2012-2-15
得分:0 
这是怎么回事啊   第一次求教
2012-02-16 10:59
ly02
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2012-2-15
得分:0 
回复 3楼 noben323
谢谢,编译通过
2012-02-16 12:06



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-360984-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013846 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved