#include <bits/stdc++.h> 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,y); cout<<"x="<<x<<" y="<<y<<endl; return 0; }
标签:std,10,5.8,int,打卡,main From: https://www.cnblogs.com/Sunyiran/p/17382173.html