#include <iostream>
#include <string>
using namespace std;
// 模板外部對double起了個類型別名T
typedef double T;
template <typename T>
void show(const T& t)
{
// 模板內部的T已經不是外部那個double別名T
// 外部的T被屏蔽
T k(t);
cout << k << endl;
return ;
}
int main()
{
T t = 3.14;
string str("yao");
show(str);
show(t);
getchar();
return 0;
}