VC6.0 If statement cannot detect the = sign Error

Source: Internet
Author: User

The original code should be this way, it is strongly recommended to put the variable behind if (a==b)//If a==b, execute the following code {...} However, in the absence of control of their own agile thinking situation, this error causes the program to execute any time the code in the IF statement (a=b) {...} As you know, the IF judgment statement in Java is very harsh, it is impossible to tolerate the above code, very strict compile time test, if the code must be the return boolean value of the variable (either 0 or 1,true or false) It's definitely not compiled. But in the VC is like the assignment statement permanent as true, completely no detection, run time completely give the opposite result. So the emphasis in C # is also

VC6.0 If statement cannot detect the = sign Error

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.