Introduction - If you have any usage issues, please Google them yourself
c/c++ surface test, many of the classic title, such as/a and b exchanged face questions 2.cpp// how to a, b the value of the exchange, and do not use any intermediate variable?// Analysis:// In short, the use of different or expressions easier to not have to worry about the problem of super-sector.// If:// a = a+ b // b = ab // a = ab // of the shortcomings of doing so is that if a, b are two relatively large number, a = a+ b when super-sector.// Used:// a = a ^ b b = a ^ b a = a ^ b not have to worry about the problem of super-sector, so that is better.// Participate in a number of operations corresponding to the two binary bit different, or, when the corresponding binary bit different, the result is 1. Involved in computing the number of still meeting code// form