C # Learning Journey--hello World

Source: Internet
Author: User

Sophomore next semester, through in the school C # Classroom learning, a preliminary understanding of some basic C # application. Here are some of the relevant exercises that follow the teacher's lectures.
First, use System.Console.WriteLine (""); Use the program in C # console to output simple text.

The array args are then assigned using the command-line parameters set in the Project-Properties-debug-start option.

Then, by setting a breakpoint, pressing the F5 key, the program compiles and runs to the breakpoint, at which point it stops and there is a yellow arrow pointing to the next statement to be executed.

When you reach the breakpoint, you can see its value clearly by placing the cursor over the array.

Using Console.WriteLine (Args[0] + "+ args[1] +" "+ args[2]), we can output the words in the argument list.

Using the following statement, we can adjust the foreground and background colors of the output text.

Through this study, I was familiar with and mastered some of the C # text output statements.

C # Learning Journey--hello World

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.