| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 746 人关注过本帖
标题:我是新手,能帮我解决几个题目吗?
取消只看楼主 加入收藏
lurrass
Rank: 1
等 级:新手上路
帖 子:17
专家分:1
注 册:2010-9-13
结帖率:42.86%
收藏
已结贴  问题点数:2 回复次数:0 
我是新手,能帮我解决几个题目吗?
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
快速回复:我是新手,能帮我解决几个题目吗?
数据加载中...
 
   



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

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