Haha, I'm back.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.