compiler 编译原理课程设计,包括词法分析器(nfa转dfa)和语法分析器(LR1实现)
2022-04-23 15:03:34 8KB C++
1
//C02.cpp // C02.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "C02.h" #include "MainFrm.h" #include "C02Set.h" #include "C02Doc.h" #include "C02View.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CC02App BEGIN_MESSAGE_MAP(CC02App, CWinApp) //{{AFX_MSG_MAP(CC02App) ON_COMMAND(ID_APP_ABOUT, OnAppAbout) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP // Standard file based document commands ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CC02App construction CC02App::CC02App() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CC02App object CC02App theApp; ///////////////////////////////////////////////////////////////////////////// // CC02App initialization BOOL CC02App::InitInstance() { // 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 // Change the registry key under which our settings are stored. // TODO: You should modify this string to be something appropriate // such as the name of your company or organization. SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(); // Load standard INI file options (including MRU) // Register the application's document templates. Document templates // serve as the connection between documents, frame windows and views. CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CC02Doc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CC02View)); AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE; // The one and only window has been initialized, so show and update it. m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About 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) // No message handlers //}}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 } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() // App command to run the dialog void CC02App::OnAppAbout() { CAboutDlg aboutDlg; aboutDlg.DoModal(); } ///////////////////////////////////////////////////////////////////////////// // CC02App message handlers
2022-04-22 13:43:22 64KB Visual C++
1
决策树ID3算法编程(c语言课程设计)
2022-04-21 17:07:02 674KB 决策树ID3
1
1、线性结构基本算法实现; 2、树型结构基本算法实现; 3、图型结构基本算法实现; 4、查找基本算法实现; 排序基本算法实现;
2022-04-20 16:05:43 4KB 集合的并、交、差操作 C++
1
制作学生通讯管理录系统的主要目的是为了利用其强大的功能在短时间内记录大量的学生信息。这个系统拥有信息录入,显示,查找,增加,删除等功能,也是这个系统的基本功。首先,我们在进行录入时可以同时录入多个人的信息,这为大量的信息录入提供了很大的方便。该系统可以显示所有联系人的联系方式,可视化能力比较强,便于浏览联系人的信息。可以按多种方式进行查找,方便用户进行信息的检索,节省了拥护大量的时间和精力,这也是大部分系统的共有功能。增加,删除功能为用户以后的使用提供了方便。
2022-04-20 03:18:05 74KB c 语言
1
用消息队列,实现聊天程序用消息队列,实现聊天程序,每次发言后自动在后面增加当前系统时间。增加结束字符,比如最后输入“88”后结束进程。
2022-04-18 11:32:23 2KB Linux下的c 课程设计 进程间通信
1
一、学生信息存放在文件中,提供文件的输入、输出等操作;学生信息管理系统分为两种身份进入,第一:管理员身份(需要密码验证)第二:学生身份(不需要密码)。管理员模式包含7种权限:1.学生信息的录入,2.学生信息的显示,3.学生信息的修改,4.学生信息的删除,5.学生信息的查询,6.学生人数的统计7.退出系统。学生模式包含3种功能:1.学生信息的查询,2.学生信息的显示,3.退出系统。充分体现两者权限的不同,学生信息管理系统中需要管理员实现学生信息的录入、显示、修改、删除、查询、统计等功能。而学生身份只需拥有查询自己信息的功能即可。
2022-04-18 10:23:39 13KB 学生信息管理系统
1
一.可行性研究报告规范..................................................................................................................................7 1.引言 7 1.1 编写目的 7 1.2 背景 7 1.3 定义 8 1.4 参考资料 8 2.可行性研究的前提 8 2.1要求 8 2.2目标 9 A. 减少人力和设备的费用; 9 B. 处理速度的提高; 9 C. 控制精度或生产能力的提高; 9 D. 管理信息服务的改进; 9 E. 自动决策系统的改进; 9 F. 人员利用率的改进。 9 2.3条件、假定和限制 9 2.4可行性研究采用的方法 9 2.5评价尺度 9 3. 对现有系统的分析 10 3.1 数据流程和处理流程 10 3.2 费用开支 11 3.3人员 11 3.4 设备 11 3.5 局限性 11 4. 所建议系统的可行性分析 11 4.1 对所建议系统的简要描述 11 4.2 数据流程和处理流程 12 4.3 与现有系统比较的优越性 13 4.4 采用建议系统可能带来的影响 13
2022-04-17 09:45:25 2.31MB C# 数据库  文档
1
C语言编写的库存管理系统,2010年本人的C语言课程设计用到文件等几乎所有C语言知识范畴内容丰富完整。
1
全面系统的学习面向对象程序设计的基本概念、基本语法和编程方法。正确理解掌握C++面向对象程序设计的基本特性:类、对象、继承与派生、多态、虚函数、模板、流类库等。遵循软件过程的各个环节进行系统分析、设计、实现、集成、测试,并相应给出软件规格说明书等制品。了解当前常用的软件开发工具(Visual C++),要求熟练掌握基于类的程序设计,培养解决实际问题的能力。 设计功能:使用面向对象的程序设计方法,程序的功能主要包括:对学生成绩信息的增、删、查、改等基本功能,并能够按照学号或姓名及成绩等进行排序和筛选,使用文件进行数据的存储和维护,能够按照班级或专业进行分类的管理。
2022-04-13 19:04:25 2.09MB c++ 开发语言 课程设计
1