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.