Mono: Hello mono!

Source: Internet
Author: User

Go to our Linux system, enter monodevelop in the terminal, and start the IDE development tool that comes with mono.


Figure 2.0.1

 

The startup is completed, as shown in:


Figure 2.1.1

 

Now, let's start our first mono program, taking helloworld as an example.

Select a new solution/project from the File menu, 2.2

 


Figure 2.1.2

 

Select the first console program and click the new button. monodevelop will automatically create a template for the console program:


Figure 2.1.3

 

Modify the main method as follows:

Public static void main (string [] ARGs)

{

String name = console. Readline ();

Console. writeline ("hello" + name + "!");

}

 

 

Compile the program by f8th and generate hellomono.exe. Run this program on the terminal:

Figure 2.1.4

Smallnest@kuaff.com

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.