#include<iostream>
using namespace std;
struct job
{
int age;
};
template <> void Swap<job>(job &a,job &b);
int main()
{
job x={18};
job y={19};
Swap(x,y);
return 0;
}
template <> void Swap<job>(job &a,job &b)
{
int temp;
temp=a.age;
a.age=b.aeg;
b.age=temp;
}
为什么会出错?