有趣的代码实例

a,b交换

int a,b;
a=a^b;
b=a^b;
a=a^b
//这样ab的值就交换了

 

posted @ 2017-04-01 11:59  Zview  阅读(153)  评论(0编辑  收藏  举报