#include<iostream>
#include<string>
using namespace std;
template<typename T>   //定义函数模板，接受类型参数T
void print(T ary[],int size)
{
	for(int i=0;i<size;i++)
	{
		cout<<ary[i]<<"  ";
	}
	cout<<endl;   //输出换行符
}
int main()
{
	int iary[5]={1,3,5,7,9};
	double dary[3]={1.3, 3.5, 5.7};
	string sary[2]={"Hello","World!"};  //定义string型数组
	print(iary,5);      //调用函数模板
	print(dary,3);
	print(sary,2);
	return 0;
}