不用中间变量交换两个数 swap(a,b);
摘要:
#include using namespace std;int main () { int a = 3; int b = 5; cout<<"a="<<a<<",b="<<b<<endl; a = a+b; ///a=7 b = a-b; ///b=3; ... 阅读全文
posted @ 2014-09-16 17:59 旭东的博客 阅读(1591) 评论(2) 推荐(0) 编辑
posted @ 2014-09-16 17:59 旭东的博客 阅读(1591) 评论(2) 推荐(0) 编辑