C # Special error locating Mechanism

Source: Internet
Author: User

Bool checked;
... 1

Public static void main ()
{...} 2

Int matched = symbol. Match (input) 3
If (matched> 0)
{
....
}
Char optional = "? ";
String theory = 'compute'; 4

Int matched = 0_or_more (symbol );
... 5

Error in code segment 1st: checked is a keyword
Error in section 2nd code: Not main, but Main
Error in code segment 3rd: The variable declaration statement does not have a semicolon www.2cto.com
Error in code segment 4th: The character value must be enclosed by single quotation marks, and the string must be enclosed by double quotation marks.
Error of code segment 5th: The first error indicates that the identifier cannot start with a number, and the second error indicates that the identifier cannot be used as an underscore.


Author: ershouyage

Related Article

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.