不知道这样行不?
#include <iostream.h>
int main()
{
int a,b,c;
cout << \"请输入a \" << endl;
cin >> a ;
cout << \"请输入b \" << endl;
cin >> b;
cout << \"请输入c\" << endl;
cin >> c;
if ( a > b )
{
if( a > c)
{
if( b > c)
{
cout << \"a=\" << a << \">\" << \"b=\" << b << \">\" << \"c=\" << c << endl;
}
else
{
cout << \"a=\" << a << \">\" << \"c=\" << c << \">\" << \"b=\" << b << endl;
}
}
else
{
cout << \"c=\" << c << \">\" << \"a=\" << a << \">\" << \"b=\" << b << endl;
}
}
else
{
if ( a > c)
{
cout << \"b=\" << b << \">\" << \"a=\" << a << \">\" << \"c=\" << c << endl;
}
else
{
if( b > c)
{
cout << \"b=\" << b << \">\" << \"c=\" << c << \">\" << \"a=\" << a << endl;
}
else
{
cout << \"c=\" << c << \">\" << \"b=\" << b << \">\" << \"a=\" << a << endl;
}
}
}
}
[此贴子已经被作者于2007-6-9 19:11:44编辑过]