I*******e 发帖数: 1879 | 1 ☆─────────────────────────────────────☆
ccca (cc) 于 (Sun Feb 15 21:40:43 2009) 提到:
swap(x,y);
不算
☆─────────────────────────────────────☆
SuperString (阳阳加油) 于 (Sun Feb 15 21:51:11 2009) 提到:
用 ^
☆─────────────────────────────────────☆
ccca (cc) 于 (Sun Feb 15 21:53:18 2009) 提到:
Yep. That is the answer, could u please elaborate.
I really dont know how to do it.
int x = rand();
int y = rand();
x = x^y; // does not work
☆─────────────────────────────────────☆
oHo (glasses) 于 (Sun |
|