C++高手请了来帮我做下基础题
C++高手请了来帮我做下基础题
日期:2010-02-08 18:09:48 人气:1
1楼的有点问题,
这个我已经测试过通过了,基本能满足你的要求.
#include
using namespace std;
void main()
{
int x,y,z;
cout<<"Please input two integers:"<<endl;
cin>>x>>y;
if(x<y)
{
int t;
t=y;
y=x;
x=t;
}