大一C++题,原题如下:输入三个整数,要求按由大到小的顺序输出。 求详细点的答案

[复制链接]
查看11 | 回复4 | 2011-11-24 15:14:34 | 显示全部楼层 |阅读模式
#includevoid max(int &a,int &b){int t;if(ausing namespace std;voi...
回复

使用道具 举报

千问 | 2011-11-24 15:14:34 | 显示全部楼层
这是一个简单的函数调用函数。把比较大的一个功能函数编出来,然后调用就可以了。希望可以帮助到你。有疑问可以追问,各种比较大小,各种题型都可以问我。望采纳!/*#includevoid main ( ){int max(int a,int b,int c);
//声明调用函数maxint x,y...
回复

使用道具 举报

千问 | 2011-11-24 15:14:34 | 显示全部楼层
给你个基础版的#include using namespace std;int main(){int a,b,c;int max,medium,min;cout>a>>b>>c;if(a>b)//a>b{if(a...
回复

使用道具 举报

千问 | 2011-11-24 15:14:34 | 显示全部楼层
#include // In standard C++ the header comes without a '.h'#include using namespace std;int main(){
cout << "Please input three numbe...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行