1、1 MFC 课程设计报告课程设计报告 字符串处理字符串处理器器 机械工程及自动化机械工程及自动化 日期:日期:2010/10/5 2 目目 录录 摘要3 Abstract3 第一章 设计预备4 1.1 项目背景4 1.2任务需求分析报告4 第二章 正式设计5 2.1程序(系统)功能设计说明5 2.2 程序(系统)模块框图6 2.3 变量、对象(类)设计和算法(函数)设计描述6 2.4 详细设计8 第三章 运行与调试14 3.1可提供的测试数据14 3.2 程序(系统)运行和调试记录与分析14 第四章 项目总结16 4.1 系统使用说明书(操作指南)16 4.2项目工作情况总结17 参考资料18
2、 感谢18 附录(代码清单)19 3 摘要摘要 我所做的项目名叫“字符串处理器” ,它是基于对话框的界面友好的 MFC 程序。在其界面上,可以输入三个字符串。在其界面上还有八个按钮,可以实现 众多关于字符串的功能,例如查找、插入、合并、替代、大写、小写、删除、匹 配等。 关键词关键词:字符串处理器 基于对话框 按钮 功能 Abstract The project that I did called “DealWithString”. Its a program, which is dialog-based, with a friendly interface. On the interface
3、, we can input three strings. There are also eight buttons on the interface. They can achieve a multitude of functions about the strings that we have inputted. Such as: searching, inserting, combining, replacing, uppercase, lowercase, deleting, matching and so on. Keyword:DealWithString Dialog-based Button Function 第一章第一章 设计预备设计预备 1.1 项目背景项目背景 经过对 MFC 一个月的学习,我们对运用 MFC 编程有了一定的了解。为了 4 检验我们的学习成果,老师布置了一个任务:用 MFC 编写一个程序实现一定功 能,题目不限。 对于所给的三个字符串,当其长度较小时,我们可以在满足一定规则的情况 下轻松地进行