2023年4月22日
摘要: 交换两个整数次序 #include<iostream>using namespace std;void swap(int &a,int &b){int t=a;a=b;b=t; }int main(){int x=5,y=10;cout<<"x="<<x<<" y="<<y<<endl;swap(x 阅读全文
posted @ 2023-04-22 23:37 清荣峻茂 阅读(20) 评论(0) 推荐(0)