代码如下 #include <iostream> using namespace std; int main(){ // Program for swapping values without a third variable int a = 15; int b = 77; a = a + b; b = a - b; a = a - b; cout << "a = " << a << ", " << "b = " << b << endl; return 0; } 输出为: a = 77, b = 15