C++编程交换两变量的值

 1 #include <iostream>
 2 
 3 int main ()
 4 {
 5     int a = 1, b=2;
 6     var t;
 7     t =a;
 8     a = b;
 9     b = t;
10     return 0 ;
11 }

猜你喜欢

转载自www.cnblogs.com/WSKIT/p/10300088.html