Li Quan that book to see almost, feel too simple point, and the order is not very reasonable, because the previous tinker for a few days, plus now use not much, so a lot of things actually just as a reference. Now I'm looking for a book to learn the basics of C + +.
------------------------------------------------
There have been two problems plagued me, continuous =, continuous < What is the result, has not been to do the test, "standard C + + book" In the first question has a clear explanation:
A=b, the return result is B, then a=b=c=d= ..., the end result is the most right-most value, so continuous = can be manipulated by visual meaning, no problem.
Well, this long-troubled problem finally found a theoretical basis, I test the a<b<c, the results are both expected, and in the expected:
A<b, returns a Boolean value instead of a return value of B like a=b, which we usually know.
So: A<b is 0 or 1, the second step is to use 0 or 1 to compare with C, naturally not get the desired result.
So those write: if (a<b>c) {...} Guy's going to be a tragedy!
In fact, these two expressions, as long as the initial understanding to operate, there will be no problem, afraid of whimsical, and want to lazy less write group &&, | |
Haha, I'm back.