#include #include #include using namespace std; template void genSwap(Type &first, Type &second){ Type temp = first; first = second; second = temp; } int main(int argc, char *argv[]) { int intNum1(5), intNum2(10); char cAlpha1('a'), cAlpha2('z'); string strWord1("tuesday"), strWord2("wednesday"); genSwap(intNum1, intNum2); genSwap(cAlpha1, cAlpha2); genSwap(strWord1, strWord2); cout << "intNum1 is now " << intNum1 << endl; cout << "intNum2 is now " << intNum2 << endl; cout << "cAlpha1 is now " << cAlpha1 << endl; cout << "cAlpha2 is now " << cAlpha2 << endl; cout << "strWord1 is now " << strWord1 << endl; cout << "strWord2 is now " << strWord2 << endl; system("PAUSE"); return EXIT_SUCCESS; }