Visual C #. NET Primer

Source: Internet
Author: User

Brief introduction

Visual C #. NET is the newest member of the Visual Studio family. The new language is based on C/COM + +, but it deepens the development direction of using component-oriented programming more easily. C + + programmers should be very familiar with its syntax.

The following sample application demonstrates how to build a simple C # project that implements the QuickSort algorithm. It includes the basic components of a C # program: Reading/writing consoles and files, creating functions, and using basic arrays.

These introductory guides are not intended to cover all aspects of the programming language. They are just a starting point for you to explore this language. We encourage you to follow the instructions in this tutorial because it includes various parts of the QuickSort application. You can also get complete source code and project files.

Recommended requirements

Compiling this sample application requires Visual Studio.NET (Beta version 2 or later). Knowledge of C + + is helpful but not necessary.

Step 1. Start Project

Development work in Visual Studio is organized in the form of a solution that contains one or more projects. In this tutorial, we create a solution that contains a C # project.

Create a new project

1. In the Visual Studio. NET environment, select File | from the menu New | Project.

2. Select Visual c#projects on the left, then select Console application on the right.

3. Specify the name of the project, and then enter a location to create the project. Visual Studio will automatically create the project directory.

4. Click OK, so now it's officially started!
Visual C # solution

Visual Studio.NET has created a solution that contains a simple Visual C # project. The project contains two files: AssemblyInfo.cs and Class1.cs.

The next few steps will discuss these different files and how to compile the project.

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.