资源简介

设计最后得分优秀,而且免答辩。 代码清晰易懂,你绝对值得拥有。

资源截图

代码片段和文件信息

// Flover Curve.cpp : Defines the entry point for the application.
#include “stdafx.h“
#include
#include “resource.h“
#include
#include
#define MAX_LOADSTRING 100
struct curve
{
double R;
double rr;
double t1;
double t2;
}CurveCur[12];
int s[4]={0}C;
HINSTANCE hInst;
TCHAR sztitle[MAX_LOADSTRING];
TCHAR szWindowClass[MAX_LOADSTRING];
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE int);
LRESULT CALLBACK WndProc(HWND UINT WPARAM LPARAM);
LRESULT CALLBACK About(HWND UINT WPARAM LPARAM);

int APIENTRY WinMain(HINSTANCE hInstance
                     HINSTANCE hPrevInstance
                     LPSTR     lpCmdLine
                     int       nCmdShow)
{
MSG msg;
HACCEL hAccelTable;
LoadString(hInstance IDS_APP_title sztitle MAX_LOADSTRING);
LoadString(hInstance IDC_FLOVERCURVE szWindowClass MAX_LOADSTRING);
MyRegisterClass(hInstance);
if (!InitInstance (hInstance nCmdShow)) 
{
return FALSE;
}
hAccelTable = LoadAccelerators(hInstance (LPCTSTR)IDC_FLOVERCURVE);
while (GetMessage(&msg NULL 0 0)) 
{
if (!TranslateAccelerator(msg.hwnd hAccelTable &msg)) 
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
}
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX); 
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = (WNDPROC)WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance (LPCTSTR)IDI_FLOVERCURVE);
wcex.hCursor = LoadCursor(NULL IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = (LPCSTR)IDC_FLOVERCURVE;
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance (LPCTSTR)IDI_SMALL);
return RegisterClassEx(&wcex);
}
BOOL InitInstance(HINSTANCE hInstance int nCmdShow)
{
HWND hWnd;
hInst = hInstance; 
hWnd = CreateWindow(szWindowClass sztitle WS_OVERLAPPEDWINDOW
CW_USEDEFAULT 0 CW_USEDEFAULT 0 NULL NULL hInstance NULL);
if (!hWnd)
{
return FALSE;
}
ShowWindow(hWnd nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
LRESULT CALLBACK Input(HWND hDlgUINT messageWPARAM wParamLPARAM lParam)
{
switch(message)
{
case WM_INITDIALOG:
{
            SetDlgItemInt(hDlgIDC_RCurve.RFALSE);
SetDlgItemInt(hDlgIDC_rrCurve.rrFALSE);
            SetDlgItemInt(hDlgIDC_t1Curve.t1FALSE);
SetDlgItemInt(hDlgIDC_t2Curve.t2FALSE);
SetDlgItemInt(hDlgIDC_CCFALSE);
        }
return TRUE;
case WM_COMMAND:
if(LOWORD(wParam)==IDOK)
{
Curve.R=GetDlgItemInt(hDlgIDC_RNULLFALSE);
Curve.rr=GetDlgItemInt(hDlgIDC_rrNULLFALSE);
Curve.t1=GetDlgItemInt(hDlgIDC_t1NULLFALSE);
Curve.t2=GetDlgItemInt(hDlgIDC_t2NULLFALSE);
C=GetDlgItemInt(hDlgIDC_CNULLFALSE);
}
if(LOWORD(wParam)==IDOK||LOWORD

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     233574  2013-06-27 16:28  FloverCurve\Debug\FloverCurve.exe

     文件     274468  2013-06-27 16:28  FloverCurve\Debug\FloverCurve.ilk

     文件      40543  2013-06-27 16:28  FloverCurve\Debug\FloverCurve.obj

     文件    1948376  2013-06-25 16:24  FloverCurve\Debug\FloverCurve.pch

     文件     500736  2013-06-27 16:28  FloverCurve\Debug\FloverCurve.pdb

     文件       3148  2013-06-27 16:28  FloverCurve\Debug\FloverCurve.res

     文件      55367  2013-06-25 16:24  FloverCurve\Debug\StdAfx.obj

     文件     107520  2013-06-27 16:30  FloverCurve\Debug\vc60.idb

     文件     176128  2013-06-27 16:28  FloverCurve\Debug\vc60.pdb

     文件       7864  2013-06-27 16:28  FloverCurve\FloverCurve.aps

     文件      16635  2013-06-27 16:28  FloverCurve\FloverCurve.cpp

     文件       4556  2013-06-25 16:20  FloverCurve\FloverCurve.dsp

     文件        530  2013-06-25 16:20  FloverCurve\FloverCurve.dsw

     文件        341  2013-06-25 16:20  FloverCurve\FloverCurve.h

     文件       1078  2013-06-25 16:20  FloverCurve\FloverCurve.ico

     文件      66560  2013-06-27 16:30  FloverCurve\FloverCurve.ncb

     文件      55808  2013-06-27 16:30  FloverCurve\FloverCurve.opt

     文件        256  2013-06-27 16:29  FloverCurve\FloverCurve.plg

     文件       5720  2013-06-27 16:28  FloverCurve\FloverCurve.rc

     文件       2115  2013-06-25 16:20  FloverCurve\ReadMe.txt

     文件       1602  2013-06-27 16:28  FloverCurve\resource.h

     文件        318  2013-06-25 16:20  FloverCurve\small.ico

     文件        298  2013-06-25 16:20  FloverCurve\StdAfx.cpp

     文件        936  2013-06-25 16:20  FloverCurve\StdAfx.h

     目录          0  2013-06-27 16:28  FloverCurve\Debug

     目录          0  2013-06-27 16:30  FloverCurve

----------- ---------  ---------- -----  ----

              3504477                    26


评论

共有 条评论