鱼C论坛

 找回密码
 立即注册
查看: 2572|回复: 2

新手刚学请教

[复制链接]
发表于 2013-5-26 23:39:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
自己跟着视频练手打的
#include <stdio.h>
#include <math.h>
void main()
{
doubie x,s;

printf("input number;\n");
scanf("%f",&x);
s = sin(x);
printf("sin of %lf is %lf\n', x, s);
}

--------------------Configuration: Hood - Win32 Debug--------------------
Compiling...
Hood.c
C:\桌面\Hood\Hood.c(6) : error C2065: 'doubie' : undeclared identifier
C:\桌面\Hood\Hood.c(6) : error C2146: syntax error : missing ';' before identifier 'x'
C:\桌面\Hood\Hood.c(6) : error C2065: 'x' : undeclared identifier
C:\桌面\Hood\Hood.c(6) : error C2065: 's' : undeclared identifier
C:\桌面\Hood\Hood.c(10) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data
C:\桌面\Hood\Hood.c(11) : error C2001: newline in constant
C:\桌面\Hood\Hood.c(12) : error C2143: syntax error : missing ')' before '}'
执行 cl.exe 时出错.
Hood.obj - 1 error(s), 0 warning(s)
请问哪里错了
谢谢各位大大了

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2013-5-27 00:08:50 | 显示全部楼层
是double  不是doubie      还有后面print括号里面的引号  
楼主加油,鱼C加油!我们都看好你哦!
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2013-5-27 00:18:27 | 显示全部楼层
楼主加油,鱼C加油!我们都看好你哦!
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-5 10:30

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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