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)