标题:我是新手,能帮我解决几个题目吗?
只看楼主
lurrass
Rank: 1
等 级:新手上路
帖 子:17
专家分:1
注 册:2010-9-13
结帖率:42.86%
已结贴  问题点数:2 回复次数:1 
我是新手,能帮我解决几个题目吗?
1. Use a recursive function to implement x^n, and use the recycle sentences to implement n!.

2.Based on the function overloading, write four different functions with the same name max() that can be used to get the max values from two int arguments, two char arguments, two float arguments, and two double arguments. Then, test it with a main function in the program.

3. . Design a function display() with default arguments. The function can be used to display("where") when we input the string of "where", if we input no argument, the function will show "Hello".

4. Design a function Area(), when it is set as Area(10,30), it can calculate the area of sector with radius 10 and angle 30; when it is set as Area(10), it can calculate the area of a circle with radius 10.
搜索更多相关主题的帖子: different max default display function 
2010-09-24 21:00
vandychan
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15
等 级:贵宾
威 望:18
帖 子:2296
专家分:6418
注 册:2010-8-20
得分:2 
这个什么题目 怎么全英文的

到底是“出来混迟早要还”还是“杀人放火金腰带”?
2010-09-24 23:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-321250-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.414686 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved