T date(Person &t) 在c++中,date 函数的输出是一个基本类型int、double、float,但是输入的参数是一个 对象 如何写模板,可以使输出类型可以是int型也可以是其他型呢?
可以用 typedef