// // A template function // p.340 // #include using namespace std; template void Output( ItemType data1, ItemType data2) { cout << data2 << "\t" << data1 << "\n\n"; } int main() { int a, b; char ch1, ch2; string s1, s2; cout << "Input two integers: "; cin >> a >> b; // out cout << "The two inegers are - "; Output (a, b); cout << "Input two string: "; cin >> s1 >> s2; // out cout << "The two strings are - "; Output (s1, s2); cout << "\n\nBye.\n\n"; return 0; }