模板的本质 模板函数实现交换 #include <stdio.h> template<class T> void myswap(T &l, T &r) { T tmp; tmp = r; r = l; l =<