java编写的gui计算器 gui设计!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2022-11-10 23:01:12 2KB java win7 计算器 面向对象
1
1、请设计一个从键盘输入一个数n,求n! 2、写一个程序,允许用户依次输入多个姓名和住址,并能将用户的输入保存到文件中。用户输入“quit”表示输入完毕,程序退出。 3、在"D://mydata"目录下有一个学生名单文件(文本)"student2006.txt",里面记载了若干学生信息,每个学生信息单独一行,每行信息共有五列,每列之间用逗号分开,其每列含义按顺序是:学号 姓名 出生日期 性别 专业,要求:将所有专业为"MATH"的学生专业改为"APMA",并重新保存为"student2006-1.txt"文件。 200607012,张华,1980.07.23,M,CS 200607016,王海,1980.08.11,M,MATH 200607078,丁美,1980.10.10,F,MATH 200607106,贺璐璐,1981.01.11,F,CS 要求,编写程序,实现从文件中读取学生信息创建学生对象,并添加到一个集合中,并提供按学号查询功能。
2022-11-08 19:50:09 98KB java 实验报告
1
第四章 面向对象编程 Object-oriented Programming 1. 类,构造函数和析构函数,类的指针 Classes. Constructors and Destructors. Pointers to classes. 2. 操作符重载,this,静态成员 Overloading Operators. this. Static members 3. 类之间的关系 Relationships between classes: friend. Inheritance 4. 虚拟成员,抽象,多态 Virtual Members. Abstraction. Polymorphism 4.1 类(Classes) 类(class)是一种将数据和函数组织在同一个结构里的逻辑方法。定义类的关键字为 class ,其功能与 C 语言中的 struct 类似,不同之处是 class 可以包含函数,而不像 struct 只能包含数据元素。 类定义的形式是: class class_name { permission_label_1: member1;
2022-11-05 17:02:32 861KB C++ C++基础
1
C++面向对象编程八皇后问题 BOOL CMyqueenApp::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 // 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(CMyqueenDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CMyqueenView)); 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; VERIFY( 1 == InitSkinMagicLib( AfxGetInstanceHandle(), "Demo" , NULL, NULL ) ); VERIFY( 1 == LoadSkinFromResource( AfxGetInstanceHandle() , "DEFAULT" ,"DEFAULT") ); VERIFY( 1 == SetWindowSkin( m_pMainWnd->m_hWnd , "MainFrame" )); VERIFY( 1 == SetDialogSkin( "Dialog" ) ); //((CMainFrame*)m_pMainWnd)->m_bSkinned = TRUE; //((CMainFrame*)m_pMainWnd)->m_nIndex = 0; m_pMainWnd->SetWindowText("八皇后问题演示"); // The one and only window has been initialized, so show and update it. m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow();
2022-11-04 16:21:50 2.52MB C++
1
T-spline 是一种定义自由曲面的新方法,其控制点比 NURBS 少,并且能够使用单个曲面表示模型而不会出现连接错误。 而T-spline数据模型的复杂性导致其编程困难重重,阻碍了T-spline技术的研究与发展。 在这里,T-SPLINE 内核给出了一组重新设计的数据模型,这些模型对人和计算机的理解都更加方便。 有关更多详细信息,请参阅我们的文章:“使用 STEP 重新考虑 T-spline 数据模型及其交换”
2022-11-04 15:10:36 8.23MB 开源软件
1
国防科大 软件工程 课件 面向对象软件工程
1
这是面向对象课程的全部课件,PDF版,主要内容有继承,多态,面向对象编程,设计模式及其示例。
2022-11-03 18:48:44 4.91MB 面向对象 设计模式 C++
1
面向对象的程序设计语言——C++_第二版-习题参考答案.pdf
1
本项目充分运用了所学的C++面向对象程序设计理论知识,使用类、对象来设计图书借阅系统。 一、系统的功能包括: (1)、图书管理员 1、管理读者账户:添加读者账户、查阅、维护读者信息。 2. 管理图书:对图书分类、编条码;图书上架、下架;查阅、维护图书信息。 (2)、读者 1、借书:通过互联网查看图书、预约借阅,到图书馆取书、借书。 2、还书:将书还到借书处。 二、业务流程: 1. 图书管理员将新进的图书分类、编码、输入数据库,并将图书分类放置到书架上; 2. 读者通过网络或者图书管理员建立读者账号,获得以PIN标识的借书卡; 3. 读者到书库浏览图书,将图书选到书车上,凭借书卡号码借书; 4. 读者还书时只需将图书投入还书窗口,计算机自动扫描条码将图书记录从读者账户消除; 5. 图书管理员将图书从还书窗口上架,供读者借阅。
2022-10-30 17:25:50 8KB c++ 项目架构 面向对象编程
1、编写一个程序,实现以下要求,根据运行时提供的参数(格式为”yyyy-mm-dd”),输出其对应的星期次序,例如,输出2007-09-7,输出2007-09-7是星期5。 2、编写一个java程序,判断两个日期的 大小以及两个日期之间的间隔天数。
2022-10-25 21:13:56 39KB java 实验报告
1