//第二十三模板 11模板参数提供默认值/*#include#include using namespace std;//默认参数 class T2=inttemplate class People{public: T1 &getx(); T2 &gety(); T1 getx()const{ return x;} T2 gety()const{ return y;} People(const T1&a, const T2&b):x(a),y(b){ cout<<"构造函数执行"< T1&People ::getx(){ return x;}template T2&People ::gety(){ return y;}int main(){ People one[4]={ People ("hello world",5), People ("good morning",6), People ("sit down please",8), People ("have a cup of tea",2) }; int num = sizeof(one)/sizeof(People ); cout<<"输出对像数组one的所有元素"<