Home > Common Problem > How to run a program in visual studio

How to run a program in visual studio

angryTom
Release: 2020-03-03 12:46:35
Original
103517 people have browsed it

Visual Studio is a very good C/C compiler, but you may not be able to use it when you are new to it. I will teach you today.

How to run a program in visual studio

How to run the program in visual studio

1. Open the Visual Studio software.

Recommended learning: C language video tutorial

2. Click File--->New--->Project.

How to run a program in visual studio

#3. Enter the file path and project name and select the empty project, then click OK.

How to run a program in visual studio

4. Right-click the source file and click Add --->New item.

How to run a program in visual studio

5. Select the C file

How to run a program in visual studio

6. Then you can enter the code.

How to run a program in visual studio

#7. After entering the code, return 0 at the end; add getchar(); in front; otherwise you will not see the running results.

How to run a program in visual studio

#8. Finally, click "Local Windows Debugger" to run.

How to run a program in visual studio

#9. Successfully executed.

How to run a program in visual studio

For more related tutorials, please pay attention to PHP Chinese website!

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template