If you are looking for software to use, go to Huajun Software Park! software release AI product list
Location: Home pageTutorial strategyTutorialComputer software tutorials How does visualc...

How to create a new c language file in visualc - How to create a new c language file in visualc

Author: Qingchen Date: 2025-10-20

Microsoft Visual C++
Microsoft Visual C++-v6.0 Chinese version

programming tools Storage: 263MB Time: 2021-08-19

Software introduction: It is a convenient and practical tool developed by Microsoft and has an integrated development environment. Microsoft Visual C++ has...

Download now

Microsoft Visual C++ (MSVC for short) is an integrated development environment (IDE) and compiler toolset developed by Microsoft. Its core products are the Visual Studio integrated development environment and the independent Visual C++ Redistributable runtime. Next, let Huajun editor explain to you how to create a new c language file in visualc and how to create a new c language file in visualc!

first step

Start the software and click "Create New Project".

Microsoft Visual C++,Microsoft Visual C++ download


Step 2

Enter "Empty Project" in the search box and select the "Empty Project" template (avoid using the C++ template).

Microsoft Visual C++,Microsoft Visual C++ download

Step 3

Click "Next", enter the project name (such as HelloC) and save path, and click "Create".

Microsoft Visual C++,Microsoft Visual C++ download

Step 4

Right-click the "Source Files" folder in "Solution Explorer" and select "Add" → "New Item". In the pop-up window, select "C++ File" (.cpp), but change the filename suffix to .c (such as main.c) to ensure that the compiler treats it as C. Click "Add".

Microsoft Visual C++,Microsoft Visual C++ download

Step 5

Enter the C code in the opened main.c file, for example:

#include <stdio.h>

int main() {

printf("Hello, C!n");

Return 0;

}

Step 6

Press F7 to compile the project, or click "Build" → "Build Solution" in the menu bar. Press Ctrl+F5 to run the program without debugging, or click Debug → Start Execution without debugging.

Microsoft Visual C++,Microsoft Visual C++ download


The above is how Huajun editor compiled for you how to create a new c language file in visualc and how to create a new c language file in visualc. I hope it can help you!

Related articles