|
![]() | 作者: glypk [glypk]
![]() |
登录 |
我的程序怎么改也运行不了,请各位帮忙给看看,错哪了,谢谢了! #include <iostream> #include <cmath> using namespace std; int main() { double a; double b; double c; double s; cout << "Please enter a number: "; cin >> a; cout << "\nPlease enter a number: "; cin >> b; cout << "\nPlease enter a number: "; cin >> c; s = (a+b+c)/2; s = sqrt(s(s-a)*(s-b)*(s-c)); cout << s << endl; return 0; } 这是错误信息 term does not evaluate to a function 又一次麻烦大家了,呵呵,请各位教教小弟 这是一个求三角形面积的程序的题,小弟试着编 了编,还是有些不明白,改不对 |
地主 发表时间: 07-03-04 16:42 |
![]() | 回复: jhkdiy [jhkdiy] ![]() |
登录 |
以下代码在DEV-cpp4.9下通过代码: |
B1层 发表时间: 07-03-04 23:32 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号