注册 登录
编程论坛 C++教室

我是新手,能帮我解决几个题目吗?

lurrass 发布于 2010-09-24 21:00, 746 次点击
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.
1 回复
#2
vandychan2010-09-24 23:56
这个什么题目 怎么全英文的
1