-
Aibembly
C常用算法程序集 Xu Shiliang Chapter IV(C Common algorithm Assembly Xu Shiliang Chapter IV)
- 2018-12-25 19:06:24下载
- 积分:1
-
Large-wind-farms-stability
大型风电场接入电网的稳定性问题研究,希望对大家有点启发( the problems of Large wind farms connected to the grid stability)
- 2013-07-21 17:39:07下载
- 积分: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
-
RevSubStr
长度为N(N很大)的字符串,求最长回文串(Length N (N large) strings, find the longest palindrome string)
- 2013-09-29 11:52:47下载
- 积分:1
-
netspeedspyer
Windows的网络流量速度检测。使用MFC作为开发平台。(A net speed spyer using MFC platform .)
- 2012-02-21 15:20:48下载
- 积分:1
-
CChat
一个聊天程序,包含客户端和服务端完整源码(A chat program, including client and server source code integrity)
- 2009-02-09 23:03:39下载
- 积分:1
-
COMOutOfProcess
进程外组件说明文档,详细介绍进程外组件通信方式(Component-process documentation, detailed component-process communication)
- 2010-05-29 14:53:50下载
- 积分:1
-
Simulinkcar
matlab/simulink组建汽车整车仿真平台,有详细说明(matlab/simulink formed vehicle simulation platform, has a detailed description)
- 2008-07-09 16:10:04下载
- 积分:1
-
HIDUSB
Windows 系统下
1.USB设备的查找:
2.发送数据到USB设备:
3.接收数据从USB设备:(Windows system 1. USB device search: 2. Send data to USB device: 3. Receive data from USB devices:)
- 2008-05-27 13:26:13下载
- 积分:1
-
9748047
Haoko net 免费域名申请系统,与大家共享()
- 2018-05-16 21:40:35下载
- 积分:1