forked from newde/homework
镇乃天子
我是无惨
This commit is contained in:
22
666/dog.cpp
Normal file
22
666/dog.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
void myswap(int &i,int &j){
|
||||
int x;
|
||||
x=i;
|
||||
i=j;
|
||||
j=x;
|
||||
}
|
||||
|
||||
int main(){
|
||||
|
||||
int a,b,c;
|
||||
|
||||
cin>>a>>b;
|
||||
|
||||
myswap(a,b);
|
||||
|
||||
cout<<a<<" "<<b<<endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user