Home Computer Tutorials Computer Knowledge How to compile C language programs in the Chinese version of Microsoft Visual C 2010 Learning Edition?

How to compile C language programs in the Chinese version of Microsoft Visual C 2010 Learning Edition?

Jan 17, 2024 am 09:27 AM

Microsoft Visual C 2010学习版中文版如何编译C语言程序

How to compile C language program in the Chinese version of Microsoft Visual C 2010 Learning Edition

File->New->Project

In the opened new project dialog box, select CLR under Visual C in the leftmost column, and then select CLR Empty Application

in the area on the right

And fill in the project name (Name), project location (Location) and solution name (Solution Name) in the three text boxes below

Click OK

After opening the newly created project in the browser, right-click the project name and select Properties. In the dialog box that opens, find the General option under Configuration Properties. Find Common Language Runtime Support (CLR support) in the dialog box on the right and set it to "No Common Language Runtime Support". Finally click OK and exit the dialog box.

Next, right-click Source Files in the project, select Add->New Item..., select "C File (.cpp)" in the dialog box, and enter the file name ending with .c. After clicking Add, you can add C language code to this file. Press F5 to debug and run.

Visualc 2010 usage

2008 is almost the same~~

Open the main interface of VS2008, and then select File→New→Project

Pop up the dialog box as shown

Select VC →win32 in the project type, then select win32 console application in the template on the right, and then enter a name below (project name, no need to include .C), select the save location and confirm

Okay, a dialog box pops up, ignore it, next step

Next, please note that in this dialog box, the application type must be selected as a console application, and the additional options must be selected as "Empty Project". Then click Done.

Then the dialog box disappears and you return to the VS main interface. At this time, there will be more "Solution Manager" on the left and right sides as shown in the toolbar

Right-click on the source file and select "Add → New Item". Note here that if you already have a written C source file, then select "Existing Item"

Another dialog box opens,

Regardless of the left one, select the C file (Note 1) in the template on the right, enter the name of the source file plus .C (Note 2) in the name below, and use the default save location. Then click "Add".

Okay, the editing page is out, everyone can write code. Here is a program "hello world" that all programmers must write no matter what language they learn^_^

As you can see here, VS2008 can intelligently mark function parameters and function bodies for easy viewing and modification. Much more convenient than VC6.0.

tips: The purpose of system("pause") is to "pause" the program when it reaches this position

After editing, then select Debug, or just click the green small arrow button (Note 3) to view the program running results

Finally, don’t forget to save

How to use visual stdio2010

1. Microsoft Visual Studio is a program development platform software developed by Microsoft. It is very powerful and easy to use. It is very popular among the majority of program developers. Microsoft Visual Studio 2010 is simple to operate, saves us a lot of time when writing programs, and makes it convenient for us to debug programs. The basic usage process is as follows;

2. First, create a new project. This prompt window will pop up after we open the program. What needs to be noted here is that the file name and file path must develop a good habit. The name should be based on the function or content of the program. The path should be placed in a special folder. You can also select New in File-New-Project. Project type;

3. Microsoft Visual Studio common functions--Toolbox

When we design the form, the toolbox is a tool that allows us to see what we get. We can drag controls directly in it. First, open the trial view - toolbox. Then fix it to the left end of the window, find the control we need in the toolbox, and drag it directly into the form program. To adjust the size, just place the mouse on the edge of the control. The size of the form can also be adjusted.

4. Commonly used functions of Microsoft Visual Studio-Properties Panel

After we add the control, we need to set the properties of the control, such as name, color, etc. At this time we need to use a very important panel - the properties panel; right-click the control to be edited and select Properties, then various properties of the control will appear in the lower right corner. Just set it according to the needs of the program.

5. Microsoft Visual Studio common functions--debugging

When our program is designed or halfway through writing, if we want to check how our program is running, we can click the debug button, or directly press F5 or ctrl F5 (commonly used in console programs). Click to stop debugging to return to the editing state.

6. Microsoft Visual Studio Common Functions--Publish

We want to publish the written program. At this time, find Generate-Publish to publish the program.

The above is the detailed content of How to compile C language programs in the Chinese version of Microsoft Visual C 2010 Learning Edition?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1676
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
Effortles Fixes for Black Screen After Installing a Graphics Driver Effortles Fixes for Black Screen After Installing a Graphics Driver Apr 15, 2025 am 12:11 AM

Have you ever encountered a black screen after installing a graphics driver like an Nvidia driver in Windows 10/11? Now in this post from php.cn, you can find a couple of worth trying solutions to the Nvidia driver update black screen.

KB2267602 Fails to Install: Here Is How to Fix It! KB2267602 Fails to Install: Here Is How to Fix It! Apr 15, 2025 am 12:48 AM

KB2267602 is a protection or definition update for Windows Defender designed to fix vulnerabilities and threats in Windows. Some users reported that they were unable to install KB2267602. This post from php.cn introduces how to fix the “KB2267602 fai

Difference Between RAID Recovery and Hard Drive Recovery Difference Between RAID Recovery and Hard Drive Recovery Apr 17, 2025 am 12:50 AM

Data recovery is always a heated topic. To successfully restore data from your device, you should know how it stores data. You can learn the difference between RAID recovery and hard drive recovery from this php.cn post.

How to Fix the File System Error (-1073741521) in Windows? - MiniTool How to Fix the File System Error (-1073741521) in Windows? - MiniTool Apr 16, 2025 am 12:37 AM

File system errors commonly happen on people’s computer and the error can trigger a series of linked malfunctions. This article on php.cn Website will give you a series of fixes to targeting the file system error (-1073741521). Please keep on with yo

Fix Security Tab Not showing in Folder Properties Windows 11 Fix Security Tab Not showing in Folder Properties Windows 11 Apr 17, 2025 am 12:36 AM

The Security tab in File Properties helps set different permissions for different groups and users to a file or folder. Some users find that Windows 11 Security tab missing from File Properties. This post from php.cn gives some methods to fix it.

Community Tips for Black Folder Background Windows 10/11 Community Tips for Black Folder Background Windows 10/11 Apr 15, 2025 am 12:40 AM

Seeing a black folder background Windows 10/11 when you open File Explorer? In this post from php.cn Solution, you will learn a couple of useful solutions to remove the black background in folders.

The File Can't Be Displayed in OneDrive - How to Resolve It? The File Can't Be Displayed in OneDrive - How to Resolve It? Apr 18, 2025 am 12:47 AM

Are you struggling with the “the file can’t be displayed” error when accessing the specific folder? Some users are complaining about this trouble and looking for useful measures. This article about the file can’t be displayed OneDrive from php.cn wil

Guide - How to Stop Expired Windows Server Auto-Shutdown? Guide - How to Stop Expired Windows Server Auto-Shutdown? Apr 18, 2025 am 12:48 AM

Some users report that they meet the Windows Server auto-shutdown issue after the license expires. This post from php.cn teaches you how to stop expired Windows Server auto-shutdown. Now, keep on your reading.

See all articles