测绘程序设计(C语言程序设计)-五子棋游戏程序开发
测绘程序设计
学生姓名: 姜凤宇
所在院系: 测绘工程学院
所学专业: 测绘工程专业
指导教师: 闫继涛、邢晓娜
高松峰、毛政利
五
子
棋
游
戏
程
序
开
发
目 录
第一章 程序设计目的和要求··········································1
1.1 课程设计的目的··············································1
1.2 课程设计实现的要求··········································1
第二章 五子棋程序概述··············································2
第三章 系统设计····················································3
3.1 设计目标····················································3
3.2 开发及运行环境··············································3
3.3 需求分析····················································3
第四章 系统模块分析 ···············································4
4.2 总体模块分析················································4
4.3 功能模块分析················································5
4.4 控制模块分析················································5
第五章 五子棋程序设计··············································7
5.1 游戏规则···················································7
5.2 预处理·····················································7
5.3 声明变量···················································7
5.4 主函数·····················································7
5.5 设置棋盘模式···············································7
5.6 开始游戏···················································8
5.7 进入游戏界面···············································9
5.8 游戏过程···················································9
5.9 判断胜负结果··············································11
第六章 程序设计心得与体会········································12
附录一 五子棋程序源代码··········································13
附录二 程序运行结果··············································20
附录三 参考文献··················································23
第一章 程序设计的目的和要求
1.1 课程设计的目的
进一步巩固《C程序设计》所学的知识,特别加强数组、指针、结构体、文件数据类型的应用,熟悉面向过程的结构化和面向对象可视化程序设计方法,培养结构化程序设计的思想,加深对高级语言基本语言要素和控制结构的理解,锻炼程序设计能力,以及用C/C++语言解决实际问题的能力,为以后后续课程的学习打好坚实的基础。
此课程设计着眼于知识点运用,把平常学的知识运用到课程实践中来,本身就是考察我们知识运用能力。要求熟悉运用一些编程软件(如:Microsoft Visual C++ 6.0及Turbo C++ 2.0),对我们所学的理论知识进一步的深化。
1.2 程序