| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 805 人关注过本帖
标题:[求助]初学菜鸟请教!
取消只看楼主 加入收藏
叶天兵
Rank: 1
等 级:新手上路
帖 子:24
专家分:0
注 册:2005-8-20
收藏
 问题点数:0 回复次数:1 
[求助]初学菜鸟请教!

求三个数的最大数。 main() {int a,b,c,d; scanf("%d,%d,%d",&a,&b,&c); d=max(a,b,c); printf("max=%d",d); }

int max(int x,int y,int z); { int t; if(x>y) t=x; if(y>z) t=y; else t=z; return (t); } 下边的函数体错的,请哪为指正一下,谢谢!

[此贴子已经被作者于2005-8-21 22:00:12编辑过]

搜索更多相关主题的帖子: 初学 
2005-08-21 16:03
叶天兵
Rank: 1
等 级:新手上路
帖 子:24
专家分:0
注 册:2005-8-20
收藏
得分:0 
谢谢了,老大!非常感激!

/bbs/UploadFile/2005-9/200592122155895112.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./bbs/UploadFile/2005-9/200592122155895112.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2005-08-21 21:59
快速回复:[求助]初学菜鸟请教!
数据加载中...
 
   



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

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