Vista中快速搭建C++基本编程环境
来源:互联网 发布:粤语发音软件 编辑:程序博客网 时间:2024/05/22 16:46
Windows Vista中快速搭建C++基本编程环境
这种环境对于平时学习或编写小C/C++程序员来说足以。
1步:下载软件
2步:安装软件
3步:基本配置
4步:调测运行
5步:单步调测
1步:挑选软件,这里选最常用免费编程工具DEVCPP(4.9.9.2)(can be downloaded from www.bloodshed.net)
2步:安装提示一步步完成安装
3步:基本配置
程序安装完成后,安装程序会自己启动配置程序。
注:是否选择XP Theme风格(因为我使用的是Vista,所以,我没有选取,但后期可以再更改)。
4步:编程调测
Editing one simple program like ‘hello.c’ and Compiling it, one error happened with message ‘studio.h No such file or directory’.
#include <studio.h>
int main(void)
{
int i;
for( i=1; i <= 10; ++i)
{
printf("Hello!");
}
getchar();
return 0;
}
Why there happened this error? When I found that ‘studio.h’ can’t be found on my local computer at all, while there are ‘io.h’ and ‘stdio.h’ files, then I came true I included the wrong Head file. Once rectified it by 'stdio.h', ‘hello.c’ was complied to create 'hello.exe'.
It’s obvious that you need to know what files have been installed on your computer under DEVCPP path:
/bin 可执行程序(壳)
/include 头文件 (c++ Head files have been placed under sub-path ‘/c++/3.4.2/’)
/usr (真实的)可执行程序
/lib 库
If you couldn’t make sure weather the Head files you have included are right or not or what Head files you should include, you can check it under ‘lib’ path directly.
5步:单步调测
单步调测对于程序员诊断问题,完成代码非常重要。
Firstly, we should enable ‘Generate debugging information’ in Tools -> Complier Options -> Settings -> Linker menu.
Then you can get into Debug process activated by clicking F8, and clicking F7 step by step ensures we could test every change or affection along with each line of our code.
- Vista中快速搭建C++基本编程环境
- 快速学习javaSE基础2-java编程环境搭建基本过程(掌握)
- linux 环境下c,c++编程(一):GCC环境搭建及基本介绍
- Javascript编程环境快速搭建要点
- Javascript编程环境快速搭建要点
- ubuntu C C++ 基本环境搭建
- 构建基本的Linux C 编程环境
- Ubuntu搭建C/C++编程环境
- C#+OpenGL编程之环境搭建(windows)
- linux下c/c++编程环境搭建
- Ubuntu搭建C/C++编程环境
- Unix/Linux环境C编程入门教程(2) CentOS环境搭建
- Unix/Linux环境C编程入门教程(2) CentOS环境搭建
- android ndk 环境搭建及基本编程思路
- Oracle的编程准备工作:搭建本地的基本环境
- maven环境快速搭建
- maven环境快速搭建
- maven环境快速搭建
- Oracle import/export
- 在windows下编译Php_Java_Bridge for php4/apache2
- UI阶段性成果,下部计划
- QQ登录runtime error!的问题
- java验证码代码
- Vista中快速搭建C++基本编程环境
- mysql 外鍵約束
- jstl学习笔记
- topn实现通用分页存储过程
- UBUNTU X86_64安装32位软件
- 一个简单的基于SOAP headers的WebService式身份验证
- C#版杨辉三角形 write和writeline啊。。。
- 请求http的返回状态码含义
- 最短乘车线路查询