#ifndef TEMPLATEEXCHANGE_H_ #define TEMPLATEEXCHANGE_H_ #include #include using namespace std; template void exchange(T& first, T& second) { T temp = first; first = second; second = temp; } template void print(T first, T second) { cout << first << " " << second << endl; } #endif /* TEMPLATEEXCHANGE_H_ */