#include<iostream>
#include<string>
#include<sstream>
using namespace std;
template<class TA,class TB>
TB AtoB(const TA &a)
{
stringstream st;
st<<a;
TB b;
st>>b;
return b;
}
int main()
{
int x=123;
string y;
y=AtoB<int,string>(x);
cout<<"strinf:"+y<<endl;
y="-126";
x=AtoB<string,int>(y);
cout<<x*100;
return 0;
}
y=AtoB<int,string>(x);
是什么意思?类型比大小??