不使用其余变量,交换两个变量的值

#include <iostream.h> void FunA() { int x = 100; int y = 200; x = x+y; y = x-y; x = x-y; cout<<"x="<<x<<" y="<<y<<endl; } void FunB() { int x = 100; int y = 200;
相关文章
相关标签/搜索