这题目如何做
#include "stdafx.h"
#include<iostream>
using namespace std;
void reverse(int a, int b);
int main(void)
{
cout << "请输入两个整数:" << endl;
int a;
int b;
cin >> a >> b;
reverse(a, b);
system("pause");
return 0;
}
void reverse(int a, int b)
{
int c = 0;
c = a;
a = b;
b = c;
cout << a << "," << b << endl;
}