-
main
数码管静态显示源代码,可以直接调入工程使用(Static digital tube display the source code can be directly transferred to the engineering use)
- 2013-05-09 17:13:13下载
- 积分:1
-
6_1
1. 定义一个抽象学生类CStudent,它具有公有成员函数Average(),该函数用于计算学生的平均分,函数为虚函数;定义一个文科学生类CStudentLiberalArts,它是类CStudent的派生类,并以公有方式派生,它具有的成员有:
1) 保存英语、政治、数学、地理和历史、美术成绩的整形成员变量;
2) 设置上述变量的公有成员函数;
3) 输出上述变量的公有成员函数;
4) 公有的成员函数Average()用于计算学生的平均分;
定义一个理科学生类CStudentScience,它是类CStudent的派生类,并以公有方式派生,它具有的成员为:
1) 保存英语、物理、数学、化学和计算机、程序设计成绩的整形成员变量;
2) 设置上述变量的公有成员函数;
3) 输出上述变量的公有成员函数;
4) 公有的成员函数Average()用于计算学生的平均分;
编写主函数,并测试以下内容:
1) 定义一个CStudent的指针数组pStu,数组长度为4;
2) 动态创建2个文科学生的对象,地址存于pStu数组的0-1个元素内;
3) 动态创建2个理科学生的对象,地址存于pStu数组的2-3个元素内;
4) 利用while循环调用数组里每个元素的计算平均成绩操作;
释放动态分配的空间,确保必要的析构函数能被调用。
(1 define an abstract class student CStudent, it has a public member function Average (), this function is used to calculate the student s average points function as virtual function definition of a liberal arts student class CStudentLiberalArts, it is the class CStudent derived class, and public be derived, which has members are:
1) Save English, shaping member variables politics, mathematics, geography and history, art achievements
2) Set the above variables public member function
3) public member function of the output of the variable
4) public member function Average () is used to calculate the average student s points
The definition of a science student class CStudentScience, it is the class CStudent derived class, and public manner derived, which has members as follows:
1) Save English, physics, mathematics, chemistry and computer programming achievement shaping member variables
2) Set the above variables public member function
3) public member function of t)
- 2014-10-20 15:29:16下载
- 积分:1
-
4vqwe
this is the code on c++ 2005
The program code, which maintains a database. Created two documents, of which is read / write. Function menu, all functions: adding records, search, replace, delete, check availability. Full inheritance. Additional function is Creation a Report to the calculation
- 2012-10-16 02:16:35下载
- 积分:1
-
des
使用DES算法;可以指定使用DES、2DES或者3DES算法;可以对任意的文件进行加密和解密,加密后文件扩展名为.des,可以指定使用ECB,CBC,CFB,OFB,CTR的任意一种模式;
(The use of DES algorithm can specify the use of DES, 2DES or 3DES algorithm can arbitrary file encryption and decryption, encryption, named after the file extension. Des, you can specify the use of ECB, CBC, CFB, OFB, CTR arbitrary a model )
- 2008-07-05 00:04:05下载
- 积分:1
-
Mathematics
Only one month to go before the nullarbor demoparty and game development competition takes place! The event will be held at ECU Mount Lawley, School of Computer and Information Science in Perth, Western Australia on Thursday the 23rd of February 2006.
- 2006-03-28 11:52:49下载
- 积分:1
-
basic-calculation
基于C++的复数运算,定义了加减乘除取实部虚部,定义了2×2阶复数矩阵的乘法
内附详细注释(The basic calculation based on C++. Define basic calculation between complex number, including+,-,*,/.
Define the multipy between two 2*2 complex matrixes.)
- 2016-01-18 06:18:01下载
- 积分:1
-
gau_1
高斯分布表面反射特性,应用于激光雷达等领域。(it is used for lidar)
- 2012-11-21 19:07:03下载
- 积分:1
-
1-(5)
图形处理,Visual C++数字图像识别技术典型案例源代码 5(Graphics processing , the Visual C++ digital image recognition technology to a typical case of source code 5)
- 2012-02-29 11:13:02下载
- 积分:1
-
Leach4_1
omnet下leach算法,有助于omnet的初学者仿真练习(Under the omnet leach algorithm, omnet help beginners simulation practice)
- 2012-09-26 21:24:58下载
- 积分:1
-
BinaryTree
二叉树在非递归算法中,后序遍历难度大,很多书上只给出思想或者几段无法直接调试的代码,甚至有些书上是错的,当时我在研究的过程中,就是按着书上错误的代码绕了好半天,几预抓狂。好在最终摸索出来了(Binary Tree in non-recursive algorithm, after the preorder is difficult, given the many books just thinking or paragraphs not directly debugging code, and even on some of the books is wrong, I was in the process of the study, according to the book is error code around for ages, a few pre-crazy. Fortunately, the final fumble out)
- 2014-01-05 10:00:17下载
- 积分:1