沙漠风暴卡特琳娜好吗:关于C语言的作业

来源:百度文库 编辑:查人人中国名人网 时间:2024/03/29 15:24:43
write a calcalator program (functions) of the program according to section

including following source files

mani.c
stack.c
gettop.c
getch.c

and corresponding to header files.

谢谢你,这关系到我的期末考试,非常谢谢你的帮忙!

#include file="mani.c';
#include file="stack.c ";
#include file="gettop.c ";
#include file="getch.c";
class CSalaryApp : public CWinApp
{
public:
CSalaryApp();

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSalaryApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL

// Implementation

//{{AFX_MSG(CSalaryApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SALARY_H__393241C5_AFD8_11D6_8649_0088CC174723__INCLUDED_)
CSalaryApp theApp;
_ConnectionPtr pTheConn; // Connection对象

/////////////////////////////////////////////////////////////////////////////
// CSalaryApp initialization

BOOL CSalaryApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

::CoInitialize(NULL); // 初始化COM环境

pTheConn.CreateInstance(__uuidof(Connection)); // 创建实例

CSalaryDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}

int CSalaryApp::ExitInstance()
{
// 如Connection对象是打开的则关闭它
if(pTheConn->GetState()==adStateOpen) pTheConn->Close();
pTheConn.Release(); // 释放Connection对象
::CoUninitialize(); // 关闭COM环境
return CWinApp::ExitInstance();
}

#include file="mani.c';
#include file="stack.c ";
#include file="gettop.c ";
#include file="getch.c";
哪间学校这么BT题目竟然是英文的?!
write a calcalator program (functions) of the program according to section 我不太懂是什么意思(英语比较烂)

就是写4个源程序(1个主程序3个小的)
实现计算器的功能
好难啊
分数这么低是没人给你做的哈哈