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 the program in visual studio
1. Open the Visual Studio software.
Recommended learning:C language video tutorial
2. Click File--->New--->Project.
#3. Enter the file path and project name and select the empty project, then click OK.
4. Right-click the source file and click Add --->New item.
5. Select the C file
6. Then you can enter the code.
#7. After entering the code, return 0 at the end; add getchar(); in front; otherwise you will not see the running results.
#8. Finally, click "Local Windows Debugger" to run.
#9. Successfully executed.
For more related tutorials, please pay attention toPHP 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!