#include <iostream>
#include <string>
using namespace std;
template <class t>
t swap(t x,t y)
{
t temp;
temp=x;x=y;y=temp;
}
void main()
{
string a,b,c;
cin>>a>>b>>c;
if(a>b) swap(a,b);
if(a>c) swap(a,c);
if(b>c) swap(b,c);
cout<<a<<endl<<b<<endl<<c<<endl
}
编译出错,提示主函数swap处有误。可是我还是不理解。求大神指教!