请将程序补充完整,计算三个数和。考察知识点:函数模板。
例(只有第1行为输入):1 2 3 1.1 2.2 3.3 sum(int):6 sum(double):6.6
template<typename T> T sum(T a, T b, T c) { return a + b + c; }