关于模版
#include<iostream>
using namespace std;
template<class T>
void swap(T& one,T& two)
{
T temp=one;
one=two;
two=temp;
}
int main()
{
int a=20;
int b=30;
swap(a,b);
cout<<a<<b<<endl;
double c=20.3;
double d=60.3;
swap(c,d);
cout<<c<<d<<endl;
return 0;
}
编译不过去,请问各位为什么