#include #include using namespace std; template S Func(T x, T y, S z, S w) { T ans1 = x + y; S ans2 = z + w; cout << "ans1 = " << ans1 << '\n'; cout << "ans2 = " << ans2 << '\n'; return ans2; } int main() { int x; x = Func(3.56, 2.45, 10, 20); cout << "x = " << x << "\n\n"; string s, s1, s2; s1 = "Hello"; s2 = "Goodbye"; s = Func('A', '0', s1, s2); cout << "s = " << s << '\n'; }