摘要:
//不申请额外内存空间就可以完成数据互换的算法:int x=a,y=b;设计一个算法,不申请第三个变量,试把a b互换位置#include <iostream>using std::cin;using std::cout;using std::endl;int main(){ int x,y; cout << "Enter two numbers: X Y" << endl; cin >> x >... 阅读全文
posted @ 2011-05-17 22:45
liulunet
阅读(981)
评论(2)
推荐(0)

浙公网安备 33010602011771号