---
url: https://ain.hmgf.hxcn.space/dev/devcpp-guide.md
description: Dev-C++编译器安装配置教程，详细图文步骤教你如何下载安装DevC++并编写运行第一个C++程序。
---

# DevC++ 使用教程

**前言**

你或许正在用VC6.0作为你C语言的IDE，因为老师推荐你用VC6.0，但这款1998年的古董，实在是太难用了。现在推荐一款编译器，Dev！

**如何安装？**

下载群文件：Dev-Cpp 5.4.2 MinGW 4.7.2 Setup，双击安装,选择**英语**

![image-20251025101755004](https://gastigado.cnies.org/d/public/image-20251025101755004.png)

点击**I agree**

![image-20251025101551131](https://gastigado.cnies.org/d/public/image-20251025101551131.png)

如果C盘空间够大，则可下在C盘，否则下在别的盘，然后点击**install**

![image-20251025101652068](https://gastigado.cnies.org/d/public/image-20251025101652068.png)

点击**next**

![image-20251025101916767](https://gastigado.cnies.org/d/public/image-20251025101916767.png)

点击**install**

![image-20251025102000191](https://gastigado.cnies.org/d/public/image-20251025102000191.png)

点击**finish**

![image-20251025102052093](https://gastigado.cnies.org/d/public/image-20251025102052093.png)

**使用**

按下 **ctrl+n** ，新建一个 cpp 文件，编写你的代码

按**F11**保存并编译

![image-20251025102139104](https://gastigado.cnies.org/d/public/image-20251025102139104.png)

输出**结果反馈**

![image-20251025102220048](https://gastigado.cnies.org/d/public/image-20251025102220048.png)

若编译时出现报错：

**双击下方错误**，定位到代码具体行数进行修改

![image-20251025102252889](https://gastigado.cnies.org/d/public/image-20251025102252889.png)
