第2个回答 2017-05-10
//#include "stdafx.h"//If the vc++6.0, with this line.
#include <iostream>
using namespace std;
int main(int argc,char *argv[]){
int a,b,*pa=&a,*pb=&b;
cout << "Input 2 integers...\n";
cin >> *pa >> *pb;
*pa>*pb ? (cout << *pa << ' ' << *pb) : (cout << *pb << ' ' << *pa);
cout << endl;
return 0;
}本回答被网友采纳