软件工程饭店点餐内容摘要:
//////////////////////// // CMyApp: // See 餐饮管理 .cpp for the implementation of this class // class CMyApp : public CWinApp { public: CString pwd。 CString name。 _ConnectionPtr m_pCon。 CMyApp()。 // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyApp) public: virtual BOOL InitInstance()。 //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CMyApp) // 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() }。 17 ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX__H__446DF14A_A8C0_4C72_AE09_16339B51D420__INCLUDED_) // 餐饮管理 .cpp : Defines the class behaviors for the application. // include include 餐饮管理 .h include 餐饮管理 ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // CMyApp BEGIN_MESSAGE_MAP(CMyApp, CWinApp) //{{AFX_MSG_MAP(CMyApp) // NOTE the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMyApp construction CMyApp::CMyApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CMyApp object 18 CMyApp theApp。 ///////////////////////////////////////////////////////////////////////////// // CMyApp initialization BOOL CMyApp::InitInstance() { AfxEnableControlContainer()。 ::CoInitialize(NULL)。 HRESULT hr。 try { hr=()。 if(SUCCEEDED(hr)) { m_pConConnectionTimeout=3。 hr=m_pConOpen(Provider=。 Data Source=,adModeUnknown)。 } } catch(__error e) { CString temp。 (连接数据库错误信息 :%s,())。 ::MessageBox(NULL,temp,提示信息 ,NULL)。 return false。 } // 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 CMyDlg dlg。 m_pMainWnd = amp。 dlg。 19 int nResponse = ()。 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 application39。 s message pump. return FALSE。 } // 餐饮管理 : implementation file // include include 餐饮管理 .h include 餐饮管理 include include include include include include include include include include include include include include include ifdef _DEBUG 20 define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About extern CMyApp theApp。 class CAboutDlg : public CDialog { public: CAboutDlg()。 // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }。 //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } 21 BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMyDlg dialog CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/) : CDialog(CMyDlg::IDD, pParent) { //{{AFX_DATA_INIT(CMyDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()LoadIcon(IDR_MAINFRAME)。 } void CMyDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CMyDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CMyDlg, CDialog) //{{AFX_MSG_MAP(CMyDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_COMMAND(ID_MENU_login, OnMENUlogin) ON_COMMAND(ID_MENU_kaitai, OnMENUkaitai) ON_COMMAND(ID_MENU_jiezhang, OnMENUjiezhang) ON_COMMAND(IDB_kaitai, OnBUTTONkaitai) ON_COMMAND(IDB_pay, OnBUTTONjiezhang) ON_COMMAND(ID_MENU_jiesuan, OnMENUjiesuan) ON_COMMAND(IDB_rishouru, OnBUTTONrishouru) ON_COMMAND(ID_MENU_yuangong, OnMENUyuangong) ON_COMMAND(IDB_reg, OnBUTTONzhuce) ON_COMMAND(ID_MENU_about, OnMENUabout) ON_COMMAND(ID_MENU_SPinfo, OnMENUSPinfo) 22 ON_COMMAND(ID_MENU_jinhuo, On。软件工程饭店点餐
相关推荐
P地址的交换机 D.通过运行 SNMP协议的网管软件访问交换机 ( 58) A. connect B. control C. configure D. confirm 试题解析: 常识。 Con是 configure的缩写。 答案:( 56) B ( 57) A ( 58) C ● 在缺省配置的情况下,交换机的所有端口 ( 59)。 连接在不同交换机上的,属于同一 VLAN的数据帧必须通过 (
,重新加入基本流 A8,或选择退卡 试求: ( 1) 设计场景( 基本流用字母 A表示,备选流用题干中描述的相应字母表示 )。 场景格式示例如下: 场景 ID 场景描述 场景过程 1 密码有误 A、 B、 C ( 2)设计测试用例场景矩阵 测试 用例矩阵格式示例如下: 测试用例 ID 场景 账号 密码 输入 金额 ATM 机确认金额 预期结果 1 1 V V V n/a 退卡 V
国家自然科学基金 (网格环境下面向可视操纵的几何建模服务构造研究 ): 本研究通过传统体素模型的扩展,构造了场景级的三维表示及操作模型,减少显示交互和传输数据量;构造中性的 XML 形式三维模型格式,基于 X3D 对模型进行了服务封装,并通 过 ECA 规则实现业务流程的服务发放及提供。 学生主要可从事银行、电信、政府部门、金融保险、物流园区的物流软件、IT 企业、制造业
戈 宜鱼炔疏勋喉出诚阜役畔烹铲仰咒媚悟泉咖敝务蓄虱暇玫毗蕾姑冤枢 A.软件做什么 B.用户使用界面 C.输入的信息 D.软件的规模 软件工程考试复习题 《软件工程》期末考试复习训练题选择题软件质量的好坏决定着软件的生命力,一般说来,一个质量好的软件应具备( )。 功能正确、界面友善、占内存少、足够可靠、易于维护功能正确、结构良好、程序短小、足够可靠、易于维护功能正确、界面友善、速度足够
内出现。 其他模型 队了上面提及的模型外。 对一些特殊的应用还有一些特别有用的模型。 例如,编译程序的说明可以使用属性文法,工资单系统可以使用表格。 要注意的是,对 SRS使用形式需求语言,通常含有使用特殊模型的意思。 警告 无论使用哪一类型的模型,都要: 在 SRS中 或在 SRS涉及到的一个文件中对它严格定义。 这个定义应该规定: a. 模型中的参数所要求的范围; b. 使用时的限定值; c