#include<iostream>
#include<conio.h>
using namespace std;
void compare(char &small,char &big)
{
if(small>big){
char temp;
temp=small;
small=big;
big=temp;
}
else return;
}
int main()
{
char a,b,c;
while(a=getche()){
b=getche();
c=getche();
cout<<endl;
compare(a,b);
compare(a,c);
compare(b,c);
cout<<a<<" "<<b<<" "<<c;
cout<<endl;
}
return 0;
}
第六题
最新推荐文章于 2025-01-17 12:59:50 发布