鱼C论坛

 找回密码
 立即注册
查看: 4647|回复: 6

哪里出错了?

[复制链接]
发表于 2013-3-16 23:52:28 | 显示全部楼层 |阅读模式
1鱼币
未命名.jpg 求大虾指教!

最佳答案

查看完整内容

我这个晕呀,你怎么能用{大括弧}呢??? void main() { double x, s; printf("input number: "); scanf("%lf", &x); s = sin(x); printf("sin of %lf is %lf\r\n", x, s); }
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2013-3-16 23:52:29 | 显示全部楼层
我这个晕呀,你怎么能用{大括弧}呢???

void main()
{
    double x, s;
    printf("input number: ");
    scanf("%lf", &x);
    s = sin(x);
    printf("sin of %lf is %lf\r\n", x, s);
}
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2013-3-17 13:01:47 | 显示全部楼层
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2013-3-17 13:12:30 | 显示全部楼层
怎么可以用.号,是用,号的
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2013-3-21 11:31:41 | 显示全部楼层
嗯,谢谢,我在这里也找到了答案,
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2013-3-21 11:48:51 | 显示全部楼层
我在啊哈C中中写了一下,
code:
#include <stdio.h>
#include <math.h>
int main()
{
        double x,s;
    printf("input number:\n");
        scanf("%lf",&x);
    s=-sin(x);
    printf("-sin is %lf\n",s);
        sleep(5000);
        return 0;
}
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2013-3-26 12:59:45 | 显示全部楼层
s=sin(x)是这样的
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-8-5 15:22

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表