C++程序设计教程课后习题答案【钱能】清华版
2.61)
please input 3 sides of one triangle: 6,6,8
a= 6.00,b= 6.00,c= 8.00 area of triangle is 17.88854
2)
该程序计算三角形的面积
前后分为三部分:输入,处理,输出。 2.7 In main(): Enter two numbers: 3 8
Calling add():
In add(),received 3 and 8 and return 11
Back in main(): c was set to 11
Exiting... 3.1 (1)
sqrt(pow(sin(x),2.5))
(2)
(a*x+(a+x)/(4*a))/2
(3)
pow(c,x*x)/sqrt(2*M_PI) //M_PI为BC中math.h中的圆周率常数 3.2 13.7 2.5 9 3.3 (1) a1=1 a2=1
(2) 1.1(3)
**** Hidden Message *****
页:
[1]