欢迎来到天天文库
浏览记录
ID:29865451
大小:217.50 KB
页数:25页
时间:2018-12-24
《用c++实现数学函数图形绘制》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、用VC++实现数学函数图形绘制用VC++实现数学函数图形绘制UsetheVC++torealizedrawingfiguresofmathematicfunctions指导教师:付勇制作人:刘海,卢文娟Tutor:FuyongProducer:Liuhai、Luwenjuan摘要VisualC++(以下简称VC++)是面向对象与可视化软件开发工具中比较成熟的一类。MFC是VC++中直接由Microsoft提供的类库,它集成了大量已定义好的类,我们可以根据需要,调用相应类,或根据需要自定义类。正是基于MFC的这种特性,我们试图设计出具有封装性、独立性的功能模块--
2、----函数数据生成模块,函数曲线输出模块,模块之间的桥梁是由模板类CArray派生的CPoint类数组充当的。函数数据生成模块用来实现对函数的设置并获得采样点,数组得到采样点数据并将其传递到输出模块中。从整体来看,实现了各程序模块的独立性,使得在函数模块中可任意添加、删除函数,可使用不同的DC和GDI,可实现不同的输出方式,整个工程在函数绘图功能上是无限扩展的。经过反复的调试和检验,我们实现了预期目标。我们的主要目的是尝试VC++在数学函数绘图方面的功能和应用。这是对VC++的探索,也是对数学函数绘图多样化的尝试。关键字数学函数图形绘制模板数组三次样条信息与计
3、算科学99-1毕业论文第25页用VC++实现数学函数图形绘制【Abstract】VisualC++isoneoftheobjectorientedandvisualsoftwaredeveloper,whichismorematurethanothers.MFCisaclasswarehousewhichissuppliedbyMicrosoft,anditcontainsagreatdealofdefinedclasses.wecantransferthecorrespondedclassifnecessary,orgiveafreshdefinitionac
4、cordingourneeds.ExactlybasedonMFCthiskindofcharacter,wetrytodesignoutthefunctionmoldwhichhavethefunctiontopacktheclassandbeindependent------MoldforcreatingFunctiondata,Moldforoutputtingthefunctioncurve,moldpieceofbornmoldpiecebesentbyCpointArrayraredbytemplateCArray.Thefirstmoldistom
5、akeoutsetsforthefunctionandgetdataweneedwhichwillbesenttothedefinedarray,sonowthearrayhavethedatathatistobegotbythesecondmold.Fromwholeproject,wecanseetheindependenceofeachmold,andexactlywemayincreaseanddecreasefunctionsifnecessary,weevencanusedifferentDCandGDItorealizethecustomedexp
6、ortationmethodbywhichwecanhaveanewviewofthefunctioncurve.So,thefunctionoftheprojectcanbeextendedfreely.afterrepeatedlydebuggingandexamining,weachieveourpurpose.ThemostimportantthingwearetryingistofindawaytoconnecttheVC++andthefiguresofmathmeticfunctions.ThisisnotonlyaexplorationtoVC+
7、+,butalsoaattemptforrealizingdiversifingthemathmeticfunctions.【Keywords】Mathematicfunctionsdrawingfigurestemplatearraytripline信息与计算科学99-1毕业论文第25页用VC++实现数学函数图形绘制目录用VC++实现数学函数图形绘制1UsetheVC++torealizedrawingfiguresofmathematicfunctions1摘要1关键字1一、引言4二、设计思路52.1总体结构的设计52.2基本结构的设计62.3面临的问题62
8、.4解决问题的方法6三、
此文档下载收益归作者所有