摘要:
【重要的事情写在前面】先来说说swap的实现方式,这道题我本来自己写了个swap的算法,除了通常的swap(type& a, type& b){ type t = a; a = b; b = a;}的写法外,还有一种【极客】写法:swap(type& a, type& b){ a ^= b;... 阅读全文
posted @ 2015-06-14 14:04
踩死大象
阅读(148)
评论(0)
推荐(0)
浙公网安备 33010602011771号