你好,欢迎来到经管之家 [登录] [注册]

设为首页 | 经管之家首页 | 收藏本站

基于VC++的画板软件_计算机专业论文范文

发布时间:2015-01-16 来源:人大经济论坛
计算机专业论文范文 摘要 文章介绍了基于VC++编译环境,采用C++语言编写画板软件的分析与设计过程。 主要思路是利用MFC针对用户鼠标的移动与点击,编写代码来做出相应的响应,实现画板功能。主要编写代码的流程为:一、新建虚基类,编写虚函数和公有成员;二、新建派生类,编写各自的公有函数实现具体的功能;三、将用户的操作和派生类的具体功能相结合,编写用户操作要执行的代码;四、编写代码实现画板的保存;五、对整个程序进行调试,提高代码效率。 本次设计,基本实现画板软件画线、画圆和画方的功能,并添加了保存和打开功能。 关键词: 画板软件,VC++,MFC,C++ ABSTRACT This thesis introduces the analysis and design of the sketchpad software based on VC + + compiler environment and the language of C++. The main ideas is using MFC to write out the code to respond the user’s mouse movements and clicks ,to realise Sketchpad features. The main process of program is: first, build new virtual base classes,program virtual functions and public members.second, build new derived class, write their own specific functions to achieve the Specific function. Third,conbain the user's operation and the specific function of derived classes, program the code of user's operation . Forth, program the code of saving function. Fifth, debugging the program, improve the code efficiency. This design, basically realise sketchpad software’s functions of drawing lines, circles, and square ,and add save and open functions. Keywords: ketchpad software, VC++, MFC, C++ 目录 摘要I ABSTRACTII 第1章 引言1 1.1 背景1 1.2 研究内容1 第2章 概念介绍3 2.1 VC++3 2.2 MFC4 2.3 C++4 第3章 画板基本功能的设计5 3.1 总体的设计思路5 3.2 为什么要使用抽象类7 3.3 抽象类的设计7 3.4 由基类到派生类8 3.5虚函数和多态性9 3.6 利用VECTOR实现动态增长10 3.6.1 STL介绍10 3.6.2 向量vector10 3.7 选择画图工具11 3.8 鼠标左键按下的响应11 3.9 鼠标移动时的响应11 3.10 鼠标左键弹起时的响应13 3.11 重要的OnPaint13 第4章 画板附加功能的设计14 4.1 颜色功能14 4.2 粗细功能15 4.3 保存功能17 4.4 打开功能17 第5章 结束语18 致谢19 参考文献20 附录1 类的部分源代码21 附录2 功能实现的部分源代码25
经管之家“学道会”小程序
  • 扫码加入“考研学习笔记群”
推荐阅读
经济学相关文章
标签云
经管之家精彩文章推荐