#include <stdio.h>
#include <iostream>
using namespace std;
template<typename T> //函数声明或定义
void mySwap(T &a,T &b) {
T temp = a;
a = b;
b = temp;
}
void test01() {
int a = 10;
int b = 1.1;
mySwap<int>(a, b);
cout << "a=" << a << endl;
cout << "b=" << b << endl;
}
int main() {
test01();
return 0;
}