Dev-C ++ 4.9.6.0 Problems

Source: Internet
Author: User

Today I wrote a project about the const experiment.ProgramIn Dev-C ++ 4. 9. 6. 0. It took a long time to debug and discuss it with others in the group ~ I should have tried it in VC. I used to do this before, but I don't know why. I have never tried it ~~ At last, the boy in the group really made me depressed. He started to discuss it with him for a long time. He guessed it by himself. Finally, I tried it in VC. --- I relied on it ~~ Correct!

Int cdemo: get_m_a () const

{

Cdemo: M_a = 10;

Return M_a;

}

This is actually wrong ~~ However, in Dev-C ++ 4.9.6.0, It is correct. In vc6, It is found by the compiler to be wrong. At least it does not comply with the c ++ standard, then I wrote Dev-C ++ 4.9.9.2 and the result was correct!

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.