慕UI0593550
2017-12-19 20:39
这题目如何做
#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;
}
C语言入门
926021 学习 · 20793 问题
相似问题