using namespace std;
# include <cstdio>
// 使用指针交换两个值
void change(int *a , int *b){
int tmp = *b;
*
【机试练习】【C++】三种方式交换两数
最新推荐文章于 2023-02-03 12:04:42 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
using namespace std;
# include <cstdio>
// 使用指针交换两个值
void change(int *a , int *b){
int tmp = *b;
*