cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 936|回复: 1

谁能看一下该程序错在那里?

[复制链接]
发表于 2008-12-21 08:33:54 | 显示全部楼层 |阅读模式
谁能看一下该程序错在那里:
求x的反正切值

#define pi  3.1415926
#include <math.h>  

D_L=atan(x)*(double(180/pi));试后有如下提示:
chong.c - 5 errors
  1132, 32 syntax error; found 'integer constant' expecting ')'.
  1132, 32 syntax error; found 'integer constant' expecting ')'.
  1132, 35 Cast from 'int' to 'double function' is illegal.
  1132, 38 syntax error; found ')' expecting ';'.
  1132, 38 Illegal statement termination.
发表于 2008-12-21 23:55:18 | 显示全部楼层
atan(x)*((double)(180/pi));

这样试试!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-4-20 17:10 , Processed in 1.627533 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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