Home  >  Article  >  Backend Development  >  How to create C language in visual studio

How to create C language in visual studio

藏色散人
藏色散人Original
2021-03-25 15:32:5766055browse

How to create a C language program in visual studio: First open the VS main program and choose to create a new project; then select C in the menu bar; then enter the VS main interface and find the source in the solution manager on the right File, right-click to add, and select New Item; finally select Add C file.

How to create C language in visual studio

The operating environment of this article: Windows7 system, visual studio2019 version, DELL G3 computer

Open the VS2019 main program and choose to create a new project

How to create C language in visual studio

Select C, Windows, All Project Types in the filter menu bar, select the empty project, click Next

How to create C language in visual studio

Configure New Project, choose any project name, and choose a location you know clearly for the project location. It is not recommended to choose the C drive. Choose to put the solution and the project in the same directory, click Create

Recommendation: "c Video tutorial

How to create C language in visual studio

Enter the VS main interface, find the source file in the solution manager on the right, right-click to add, and select New Item

How to create C language in visual studio

Select the C file (.cpp), change the extension to .c in the name bar below (the original extension is .cpp), and click Add

How to create C language in visual studio

Now you can write C language in the interface. After writing the program, press CTRL F5 to execute the program

How to create C language in visual studio

Notes

Establish A dedicated folder to save all projects (do not create it on the C drive)

Remember to save the code after writing it! ! !

The above is the detailed content of How to create C language in visual studio. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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