If you are looking for software to use, go to Huajun Software Park! software release AI product list

How to create a new C program in Dev C++ - How to create a new C program in Dev C++

Author: Qingchen Date: 2025-05-21

Dev C++
Dev C++-v6.7.5 green Chinese version

programming tools Storage size: 37.05MB Time: 2022-12-06

Software introduction: Dev-C++ Dev-C++ coding and debugging Dev-C++ Answer: 1. Open Tools-->Compile Options, in...

Download now

Dev C++ is a software that supports multiple operating systems, including Windows, Linux, etc. This means that users can use the same IDE for C++ development on different platforms to achieve the convenience of cross-platform programming. An efficient compiler is used to quickly compile C++ code and improve development efficiency. Next, let Huajun editor explain to you how to create a new C program in Dev C++ and how to create a new C program in Dev C++!

first step

Start the Dev C++ 5.11 software and enter the main interface.

Dev C++, Dev C++ latest download

Step 2

In the menu bar, click the ‌File‌ option. In the drop-down menu, select ‌New‌. In the new dialog box that pops up, select ‌"Source Code File"‌ (or similar option, make sure you are creating a source code file).

Dev C++, Dev C++ latest download

Step 3

In the new source code file, enter the following simple C code:


#include <stdio.h>


int main() {

printf("Hello, World!n");

Return 0;

}

Dev C++, Dev C++ latest download

Step 4

Click the ‌File‌ option in the menu bar. Select ‌Save‌ or ‌Save As‌.

Dev C++, Dev C++ latest download

Step 5

In the pop-up save dialog box, select a save location (such as the desktop or a folder). Enter a file name in the File name box, making sure to have ‌“.c”‌ as the file extension, for example ‌“hello.c”‌. Click the ‌Save‌ button.

Dev C++, Dev C++ latest download

Step 6

Click the ‌Run‌ option in the menu bar. Select ‌Compile & Run‌ (or just click the Build & Run button on the toolbar, usually an icon with a green triangle).

Dev C++, Dev C++ latest download

The above is how the editor of Huajun compiled for you how to create a new C program in Dev C++ and how to create a new C program in Dev C++. I hope it can help you!

Related articles