CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序 搜索资源 - 重载运算符

搜索资源列表

  1. C++运算符重载源程序

    0下载:
  2. C++运算符重载源程序,各种符号“+”“-”“=”重载的实例
  3. 所属分类:其他小程序

    • 发布日期:2011-07-24
    • 文件大小:3624171
    • 提供者:qiaokeligongzhu
  1. C++程序设计语言实验二

    0下载:
  2. 实验二:C++编程入门 一、实验内容 1. 使用构造函数、析构函数。 2. 使用对象数组。 3. 学习动态创建对象。 4. 学习全局对象、静态对象、局部对象。 5. 运算符重载。 二、实验题目 1,定义一个学生类,要求存储学号,姓名, 年龄,性别,班号等信息,从键盘输入10个学生信息,存储在一个对象数组中,并将所有学生信息打印出来。 要求:1,学号按照1,2,3....排列,并通过对象构造函数输入。 2,学生类提供一个打印函数,负责打印学生信息
  3. 所属分类:其他小程序

  1. C++程序设计语言实验三

    0下载:
  2. 实验三:C++编程入门 一、实验内容 1. 类模版。 2. 运算符重载。 3. 友元。 4. 继承。 二、实验题目 1, 设计一个类SavingsAccount,定义一个静态数据成员记录存款的年利率(rate),该类的每个成员都包含一个私有的数据成员balance,表示该成员当前的存款数额。提供一个成员函数CalMonthlyInterest(),用以计算月利息(用balance乘以rate再除以12),并将这个月利息加入balance中。提供一个静态成员函数ModifyRate(
  3. 所属分类:其他小程序

  1. 运算符重载

    0下载:
  2. 源于c++中的运算符重载。
  3. 所属分类:其他小程序

  1. moban C++运算符重载的方法

    0下载:
  2. C++运算符重载的方法,例中是重载运算符“+”,使之能用于两个复数相加的代码。-C++ operator overloading methods, for example, is overloaded operator "+", so that it can code for adding two complex numbers.
  3. 所属分类:其他小程序

    • 发布日期:2017-03-23
    • 文件大小:246297
    • 提供者:林玉堂
  1. CVector3D

    0下载:
  2. 实现“向量”的运算符重载 (3维数) 向量的维数可自定义,实现的运算有以下:相加、 相减、点积、自增、自减 以上运算不只能是现在向量与向量之间的运算,同时也可以与常数的运算。-Achieve the " vector" operator overloading (three dimensional) vector dimension can be customized to achieve the operation are the following: additio
  3. 所属分类:Other windows programs

    • 发布日期:2017-03-30
    • 文件大小:2361
    • 提供者:
  1. shihui

    0下载:
  2. 本程序在原来数组程序的基础上添加了模板、重载+、- 、=、==和!=运算符等操作。 实现了对两个数组的加、减、赋值、判断是否相等等功能。-This procedure in the original array of procedures based on the added template, overloading+,- ,=,== And! = Operator and other operations. Achieved on the two array add, subtract,
  3. 所属分类:Other windows programs

    • 发布日期:2017-04-16
    • 文件大小:9539
    • 提供者:史惠
  1. lab8

    1下载:
  2. 1. 编写程序定义Point类,在类中定义整型的私有成员变量_x、_y,对Point类重载“++”(自增) “--”(自减)运算符,实现对坐标值的改变。 2. 编写程序定义一个车(vehicle)基类,有Run、Stop等成员函数,由此派生出自行车(bicycle)类、汽车(motorcar)类,从bicycle和motorcar派生出摩托车(motorcycle)类,它们都有Run、Stop等成员函数。观察虚函数的作用。 3. (选做)对实验2中的people类重载“= =”运算符和“
  3. 所属分类:Other windows programs

    • 发布日期:2017-03-27
    • 文件大小:1369
    • 提供者:ljqiang
  1. lab_8

    0下载:
  2. 1.定义Point类,有坐标_x,_y两个成员变量;对Point类重载“ ++”(自增)、“--”自减运算符,实现对坐标值的改变 2.定义一个车(vechical)基类,有Run。Stop等成员函数,由此派生出自行车(bicycle)类,汽车(motorcar)类,从bicycle和motorcar派生出摩托车(motorcycle)类,他们都有Run,Stop等成员函数。观察虚函数的作用 3.对实验六中的people,类重载“==”运算符,“==”运算符判断两个people类对象的
  3. 所属分类:Other windows programs

    • 发布日期:2017-03-28
    • 文件大小:9165
    • 提供者:YIDIANER
  1. overloadedoperators

    0下载:
  2. 新建Rational类,重载运算符+ - * /在新的数据类型内的引用-New Rational classes, overloaded operators+-*/new data types in the reference
  3. 所属分类:Other windows programs

    • 发布日期:2017-04-08
    • 文件大小:966173
    • 提供者:李亚
  1. long

    1下载:
  2. 有关长整数的四则运算,十进制存储,基本操作是重载运算符.-The long integer arithmetic, decimal storage, the basic operation is overloaded operator.
  3. 所属分类:Other windows programs

    • 发布日期:2017-04-03
    • 文件大小:1944
    • 提供者:李斌
  1. 1

    0下载:
  2. 设计程序重载运算符“=”、“+”和“>”、“==”实现字符串的赋值、拼接和比较大小、相等功能。-Design process overloaded operators " =" ," +" and " > " ," ==" for string assignment, splicing, and compare the size, the same function.
  3. 所属分类:Other systems

    • 发布日期:2017-04-16
    • 文件大小:38735
    • 提供者:aggie
  1. 5

    0下载:
  2. 复数类。定义一个复数类,并重载运算符,以实现复数的加法与减法运算,及显示运算结果-Definition of a complex class, both carrying the operator in order to achieve complex addition and subtraction, and display the result of the operation
  3. 所属分类:Other systems

    • 发布日期:2017-04-03
    • 文件大小:928
    • 提供者:yaoyunheng
  1. Lesson1

    0下载:
  2. 简单的程序介绍重载运算符、类的继承、const用法、static用法-Simple procedures introduced overloading, inheritance,,,,,
  3. 所属分类:Other windows programs

    • 发布日期:2017-12-01
    • 文件大小:48294
    • 提供者:白杨
  1. exp2

    0下载:
  2. 学习和掌握运算符重载,理解异常处理机制。 实验内容:   (1)编程实现一个实数矩阵类,它可以进行加、减、乘和赋值运算,并且要重载运算符“()”,用来返回矩阵元素的值。 (2)该类还要支持异常处理机制,能够处理可能的非法矩阵操作。-Learn and master operator overloading, understanding exception handling mechanism. Experiment: (a) programming a real matrix cl
  3. 所属分类:Other windows programs

    • 发布日期:2017-05-06
    • 文件大小:1216640
    • 提供者:wu
  1. Operator-overloading

    0下载:
  2. 运算符重载例题。设计一个三角形类Triangle,包含三角形三条边长的私有数据成员,另有重载运算符“+”与“-”,以实现求两个三角形对象的面积之和与之差。-Operator overloading examples. Design a triangle class Triangle, containing private data members three sides of the triangle long, otherwise overloaded operators " +&qu
  3. 所属分类:Other systems

    • 发布日期:2017-04-11
    • 文件大小:575
    • 提供者:惠风之上
  1. MyArray

    0下载:
  2. 动态数组及模板类 任务目标:   学习C++的类机制、模板机制、运算符重载、重载函数机制、内存动态分配与释放等。 任务描述:   使用C++的类机制实现一个动态的数组类MyArray,具有完整的构造和析构函数。使用模板机制,使其能够支持各种数据类型(包括结构体)。MyArray类中实现以下方法: 添加一个元素,使用函数重载的方式,实现1)添加数组尾部,2)添加到指定序号位置; 通过函数,设置指定位置(序号)的元素数据; 删除指定序号的元素; 删除所有元素;
  3. 所属分类:Other windows programs

    • 发布日期:2017-05-28
    • 文件大小:10502296
    • 提供者:周畅
  1. Name_pairs.cpp

    0下载:
  2. c++重载运算符 (字符串之间的操作 c++大一上机作业namepairs)-c++ overloaded operators
  3. 所属分类:Other windows programs

    • 发布日期:2017-04-12
    • 文件大小:1194
    • 提供者:lin
  1. Vector

    0下载:
  2. 定义一个向量类,重载运算符,完成向量的运算。(Define a vector class, overloading operator, complete the operation of the vector.)
  3. 所属分类:其他

    • 发布日期:2017-12-18
    • 文件大小:4704256
    • 提供者:
  1. 第六周作业

    0下载:
  2. 对类Point重载“++”(自增)、“--”(自减)运算符,要求同时重载前缀和后缀。(The Point class overload "+ +" (increment) and "--" (decrement) operator requirements at the same time overloaded prefix and suffix.)
  3. 所属分类:其他

    • 发布日期:2018-01-07
    • 文件大小:5421056
    • 提供者:猪猪aaa
« 12 3 4 5 6 »
搜珍网 www.dssz.com