(complement) C # study notes (2)

Source: Internet
Author: User

The variable in C # requires an artificial initialization assignment instead of a 0 value by default, such as c,c++.

After modification

And then try to use enum enum discovery differs from C + + in that it needs to be written outside main ().

At the same time, if the enumeration is a formal type enumeration, it has an initial value if it is not artificially initialized.

Then test under If......else, while the basic usage of conditional branching statements and the one thing that is almost noticeable in the previous C + + is if (...). ), the condition must be a bool value or a BOOL expression and cannot implicitly convert a non-0 variable value to a bool value like C + +

The prefix suffix operator is the same as C + +

Finally, we try to use the C # class, constructor with parameters, call dynamic function and so on.

(complement) C # study notes (2)

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.