-
SegyFileRead
利用C语言编写的读取Segy文件数据的小程序(Using C language to read file data Segy small program)
- 2008-07-23 21:17:48下载
- 积分: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
-
wpf + Ribbon + Avalondock 实现多文档界面设计 示例源码
wpf + Ribbon + Avalondock 实现多文档界面设计 示例源码
- 2014-01-18下载
- 积分:1
-
SteamVR For Unity插件
SteamVR For Unity插件
SteamVR plugin for Unity - v1.0.9
Copyright 2014-2016, Valve Corporation, All rights reserved.
Quickstart:
To use, simply add the SteamVR_Camera script to your Camera object(s). Everything else gets set up at
runtime. See the included quickstart guide for more details.
- 2022-07-07 15:28:36下载
- 积分:1
-
chap12
MATLAB c++ 可以实在嵌入式的环境下联合编程。联合仿真(MATLAB c++ can be embedded in the environment is the joint programming. Co-simulation)
- 2011-05-09 10:06:35下载
- 积分:1
-
PC与单片机双向通讯智能温控程序
说明: 基于VC++的51单片机控制源码,PC与单片机双向通讯智能温控程序(Based on VC ++ 51 single-chip microcomputer control source code, PC and single-chip bidirectional communication intelligent temperature control program)
- 2020-05-14 11:07:04下载
- 积分:1
-
本讲述linux软件之父 李纳斯.托沃兹 的书
本讲述linux软件之父 李纳斯.托沃兹 的书-about the father of Linux software hammers. Torvalds book
- 2022-05-13 20:32:59下载
- 积分:1
-
C# 制作一个顶层显示的窗口-不被其它窗口遮挡
C#设置顶层显示的窗口,让窗口显示在其它窗口的最上面,不被遮挡,这种窗口形式或许大家平时都见到过,特别是一些视频播放器,在播放视频的时候,都可以设置是否顶层显示,本示例就是模拟了这个功能,通过“允许以最顶层方式显示窗口”和“禁止以最顶层方式显示窗口”来模拟启用和关闭顶层窗口的功能,代码貌似简单:
private void button1_Click(object sender, RoutedEventArgs e)
{//允许以最顶层方式显示窗口
this.Topmost = true;
}
private void button2_Click(object sender, RoutedEventArgs e)
{//禁止以最顶层方式显示窗口
this.Topmost = false;
}
- 2023-05-27 13:10:03下载
- 积分:1
-
speech20040601
说的是一个关于MATLAB使用的简单介绍的文件,对初学着还是有一顶帮助的(That is a study on the use MATLAB a brief document, on a beginner or a help)
- 2008-06-12 21:05:50下载
- 积分:1
-
123
操作1.54中景园OLED显示屏,基于STM32的ARM处理器(Operate 1.54 Zhongjing Garden OLED Display Screen)
- 2018-12-29 17:11:38下载
- 积分:1