搜索资源列表
xufunction
- 写一个程序,定义抽象基类shape, 由它派生3个基类,Circle(圆),Rectangle(矩形),Trapezoid(梯形)。用虚函数分别计算几种图形的面积,并求他们的和。要求:用基类指针数组,使它的每一个元素指向一个派生类对象-Write a program that defines an abstract base class shape, it is derived from the three basic classes, Circle (round), Rectangle (re
array
- C++的数组类管理类定义 被本人持续使用并完善超过20年 支持动态数组,和2维数组 类似于VC++中的CArray,且许多内部方法都与CArray的内部方法相同,但效率和方便性比CArray要好许多。特别重要的是:它们可以跨平台地工作于任何C++开发环境。-A c++ array management type definition series. They work like CArray class in VC++.But they work more efficient a
employee
- 雇员管理 掌握类的构造函数和析构函数的概念和使用方法 掌握对对象数组、对象的指针及其使用方法 进一步加深对类和对象的理解-Employees to manage a class constructor and destructor of the concepts and master the use of an array of objects, object and its use to further deepen the understanding of classes and objec
lab_10
- 1.将直接插入程序,直接选排程序,冒泡程序,顺序查找函数封装到数组类中,作为成员函数,实现并测试类 2.定义一个整形数组,使用C++标准模板库(STL)中查找函数find()进行数据的查找 3.定义一个对people类对象数组按编号排序的函数,一个按编号查找people对象的函数。在测试过程中对使用前面实验得到的结果定义教师数组和学生数组,分别对教师数组和学生数组进行排序和查找-1. Will directly insert the procedure, direct election
polynomial
- Develop class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent, e.g., the term 2x4 has the coefficient 2 and the exponent 4. Develop a complete class containing proper
class-string
- 建立一个对象数组,内放5个学生的数据,设立一个函数max,用指向对象的指针做函数参数,在max函数中找出5个学生中成绩最高者,并输出其学号。-Create an array of objects, by putting five student data, set up a function max, with a pointer to an object to do the function parameters, the max function to find the five stude
Array
- 用类实现动态数组的各种操作,获取数组大小,重置数组大小,获取元素,重载[]操作符,追加新元素,删除元素,插入元素,重载=-With class implements a dynamic array of various operations, access to the array size, the size of the array is reset, access to the elements, overloaded [] operator, additional new element
1
- 定义数组MyArray类。它满足的要求如下:1。该类用于保存整数;2。类可以检查数组下标溢出;3。客户端可以使用您定义为MyArray的主要代码:无效的main(){MyArray intarray(10);//这里10是intarray的元素的数目。对于(int i = 0;i < 10;i++)intarray [我] =我*我;//初始化intarray的元素cout << intarray;/ /打印中的每一个元素intarray}4。这是额外的需求:思考如何保存任何数
fast-array
- 小马作品,利用快速数组类对文本数组进行快速的赋值.. -by Mister Ma, using fast array class for fast text array assignment ..
C
- 设计一个通用数组类(主要这对数值型数据),设计相关成员以完成对数组的常用操作(如元素的添加、删除、访问、查找及数组排序等),并对>>、<<、[ ](返回某下标处得元素值)、=(给数组赋值)等运算符进行重载!所设计的数组类应能进行越界检查。-Design a generic array class (mainly this data to numeric), designed to complete the relevant members of the array com
SHAKA
- 自已写的位处理宏及位数组类代码,C/C++语言编写,代码在这里公开,希望大家积极下载使用。-Himself wrote a macro and a array class code, C/C++ language, code open here, hope that we actively download.
SKBIT
- 自已写的位处理宏及位数组类代码,C/C++语言编写,代码在这里公开,希望大家积极下载使用。-Himself wrote a macro and a array class code, C/C++ language, code open here, hope that we actively download.
CDArray
- 用C++实现一个动态数组类接口的程序代码-With C++ implement a dynamic array class interface program
MyArray
- 动态数组及模板类 任务目标: 学习C++的类机制、模板机制、运算符重载、重载函数机制、内存动态分配与释放等。 任务描述: 使用C++的类机制实现一个动态的数组类MyArray,具有完整的构造和析构函数。使用模板机制,使其能够支持各种数据类型(包括结构体)。MyArray类中实现以下方法: 添加一个元素,使用函数重载的方式,实现1)添加数组尾部,2)添加到指定序号位置; 通过函数,设置指定位置(序号)的元素数据; 删除指定序号的元素; 删除所有元素;
ArrayOfSort
- c++,利用动态数组实现一个排序类。其中排序是冒泡排序-Realized sorting using dynamic array class
Array
- 数组类的实现与改进。利用操作符重载,定义类来生成一数组-An array of classes and achieve improvements. Use operator overloading to generate an array of custom class
ARRAY
- dynamic array using class principle
Array
- C++数组类的定义。构造函数。析构函数。成员函数,-C++ The definition of an array class. Constructor. Destructor. Member functions, and so on........
5163001010-魏振豪-实验11-2
- 将直接插入排序、直接选择排序、冒泡排序、顺序查找函数封装到第9章的数组类中,作为成员函数。实现并测试这个类(Directly into the sorting, direct selection, sorting, bubble sorting, sequential search function, encapsulated in the ninth chapter of the array class, as a member function. Implement and test thi
ArrayHelper
- Unity 功能 泛型 处理数组元素 工具类(Unity function generic processing array element tool class)
