摘要: 1 #include 2 using namespace std; 3 template 4 void swap(T &a,T &b) 5 { 6 T temp=a; 7 a=b; 8 b=temp; 9 }10 int main()11 {12 double dx=3.5,dy=5.6;13 int ix=6,iy=7,ia=303,ib=505;14 string s1="good",s2="better";15 cout 2 void swap(T &a,T &b) 3 { 4 T temp=a; 5 a=b; 6. 阅读全文
posted @ 2013-06-23 11:07 herizai 阅读(213) 评论(0) 推荐(0) 编辑