资源简介
实验一:doolittle求多项式的解 grauss 求多项式的解
实验二:Lagrange插值求解函数值 Newton插值求解函数值
实验三:变步长梯形法 Romberg算法
实验四:改进欧拉法 四阶龙格-库塔法
共8个算法,在一个mfc项目中完成的。然后是c代码。自己的简单作业。
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Test_math.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-09-12 19:18 c代码\
文件 3885 2016-05-24 22:13 c代码\实验一.txt
文件 2823 2016-05-23 23:05 c代码\实验三.txt
文件 1855 2016-05-24 20:14 c代码\实验二.txt
文件 2242 2016-05-17 18:58 c代码\实验四.txt
文件 2289 2016-09-12 19:31 关于mfc及打开.txt
目录 0 2016-09-12 19:30 界面\
目录 0 2016-09-12 19:30 界面\Debug\
文件 19735 2016-05-23 12:32 界面\Debug\MainFrm.obj
文件 105462 2016-05-23 12:32 界面\Debug\StdAfx.obj
文件 13784 2016-05-24 22:10 界面\Debug\Test1.obj
文件 14322 2016-09-12 19:30 界面\Debug\Test1_1.obj
文件 15393 2016-05-24 22:10 界面\Debug\Test1_2.obj
文件 13784 2016-05-24 19:46 界面\Debug\Test2.obj
文件 13174 2016-05-24 19:58 界面\Debug\Test2_1.obj
文件 1976 2016-05-23 23:57 界面\Debug\Test2_1_input.obj
文件 13450 2016-05-24 20:11 界面\Debug\Test2_2.obj
文件 13772 2016-05-23 22:53 界面\Debug\Test3.obj
文件 13513 2016-05-28 17:21 界面\Debug\Test3_1.obj
文件 14418 2016-05-23 22:54 界面\Debug\Test3_2.obj
文件 13760 2016-05-23 18:49 界面\Debug\Test4.obj
文件 13357 2016-05-23 22:22 界面\Debug\Test4_1.obj
文件 15696 2016-05-28 15:46 界面\Debug\Test4_2.obj
文件 151621 2016-09-12 19:30 界面\Debug\Test_math.exe
文件 358932 2016-09-12 19:30 界面\Debug\Test_math.ilk
文件 22942 2016-05-23 12:47 界面\Debug\Test_math.obj
文件 5499184 2016-05-23 12:32 界面\Debug\Test_math.pch
文件 525312 2016-09-12 19:30 界面\Debug\Test_math.pdb
文件 12508 2016-06-05 20:36 界面\Debug\Test_math.res
文件 14703 2016-05-23 12:32 界面\Debug\Test_mathDoc.obj
文件 27647 2016-05-23 12:54 界面\Debug\Test_mathView.obj
............此处省略53个文件信息
- 上一篇:Windows程序设计小游戏捕鱼达人
- 下一篇:通用杀毒软件VC++源代码
相关资源
- MFC界面设计
- mfc界面及示波器程序源码
- mcp4531 数字电位器c语言驱动和电路
- 基于tcp 的windows发送文件系统mfc界面
- MFC界面开发
- 数据结构课程设计vc6.o编译有MFC界面的
- SP++ 3.0信号处理工具包
- matlab转C代码
- PIC18F4520 C代码
- MFC界面 约瑟夫环
- 《实用数值计算方法》甄西丰 全部源
- OBJ 模型文件读取显示 基于OpenGL MFC界
- OGRE嵌入MFC代码以及嵌入过程说明
- 制作带MFC界面的DLL以及调用
- visual c++ 自绘控件 菜单 MFC界面 资源
- MFC界面控件美化
- Skinsharp+最新破解版+150个皮肤
- MFC界面设计小型点餐系统
- ABCBank(银行管理系统)
- MFC界面美化之SkinMagic典型
- MFC界面中英文切换
- MFC界面美化库BCGControlbar16.1
- c++课程设计员工管理系统带MFC界面
- MFC界面 8数码A星算法
- VC++2010 VC上位机 20个教程 零基础 极速
- 双三次样条插值算法代码
- 数值计算中算法实现和实验报告(C
- 聚类分析ISODATA,C代码
- 文本编辑器C代码.
- avilib库源C代码
评论
共有 条评论