方法一:(可操作字符)
a = a^b;
b = a^b;
a = a^b;
方法二:(可操作字符)
a=a+b;
b=a-b;
a=a-b;
方法三:(不可以操作字符)
a=a*b;
b=a/b;
a=a/b;
方法四:
swap(a,b);
时间: 2024-10-24 11:48:03
方法一:(可操作字符)
a = a^b;
b = a^b;
a = a^b;
方法二:(可操作字符)
a=a+b;
b=a-b;
a=a-b;
方法三:(不可以操作字符)
a=a*b;
b=a/b;
a=a/b;
方法四:
swap(a,b);