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

文件名称:StringOverLoading

介绍说明--下载内容来自于网络,使用问题请自行百度

运算符重载



任务目标:

  学习C++的运算符函数重载机制,并学习C++的。

任务描述:

  设计一个字符串类MyString,要求该类能够完成以下操作(用函数重载机制完成)。要求构造完整的类(包括构造、析构函数),并且实现其他以下功能

String1=String2+String3  (重载+)

String1 += String2    (重载+=)

(int)String1       (重载类型转换int),将String对象中的所有字符的ASCII相加后返回。

String1 == String2  (重载相等判断,两字符串相等返回真,不等返回假)

cout << String1    (输出符号重载)

cin >> String1      (输入符号重载)

  编写测试程序测试该类。-Operator Overloading mission objectives: learning C++ operator function overloading mechanism, and learn C++' s. Task Descr iption: Design a string class MyString, asked the class to complete the following (using function overloading mechanism is completed). Structural integrity requirements of the class (including the structure, the destructor), and achieve other following functions String1 = String2+String3 (overloaded+) String1+ = String2 (overloaded+ =) (int) String1 (heavy duty type conversion int), the String object to return after all ASCII characters added. String1 == String2 (overloaded equal judgment, two strings are equal returns true, unequal returns false) cout < < String1 (output symbol overloading) cin > > String1 (input symbols reload) the preparation of test procedures to test the class.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

StringOverLoading/
StringOverLoading/StringOverLoading/
StringOverLoading/StringOverLoading/Debug/
StringOverLoading/StringOverLoading/Debug/StringOverLoading.exe
StringOverLoading/StringOverLoading/Debug/StringOverLoading.ilk
StringOverLoading/StringOverLoading/Debug/StringOverLoading.pdb
StringOverLoading/StringOverLoading/ipch/
StringOverLoading/StringOverLoading/ipch/stringoverloading-8d976840/
StringOverLoading/StringOverLoading/ipch/stringoverloading-8d976840/stringoverloading-30935bd.ipch
StringOverLoading/StringOverLoading/StringOverLoading/
StringOverLoading/StringOverLoading/StringOverLoading.sdf
StringOverLoading/StringOverLoading/StringOverLoading.sln
StringOverLoading/StringOverLoading/StringOverLoading.suo
StringOverLoading/StringOverLoading/StringOverLoading/Debug/
StringOverLoading/StringOverLoading/StringOverLoading/Debug/cl.command.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/CL.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/CL.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link-cvtres.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link-cvtres.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.9760-cvtres.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.9760-cvtres.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.9760.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.9760.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.command.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/link.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/main.obj
StringOverLoading/StringOverLoading/StringOverLoading/Debug/mt.command.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/mt.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/mt.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/MyString.obj
StringOverLoading/StringOverLoading/StringOverLoading/Debug/rc.command.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/rc.read.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/rc.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.Build.CppClean.log
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.exe.embed.manifest
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.exe.embed.manifest.res
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.exe.intermediate.manifest
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.lastbuildstate
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.log
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.vcxprojResolveAssemblyReference.cache
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading.write.1.tlog
StringOverLoading/StringOverLoading/StringOverLoading/Debug/StringOverLoading_manifest.rc
StringOverLoading/StringOverLoading/StringOverLoading/Debug/vc100.idb
StringOverLoading/StringOverLoading/StringOverLoading/Debug/vc100.pdb
StringOverLoading/StringOverLoading/StringOverLoading/main.cpp
StringOverLoading/StringOverLoading/StringOverLoading/MyString.cpp
StringOverLoading/StringOverLoading/StringOverLoading/MyString.h
StringOverLoading/StringOverLoading/StringOverLoading/StringOverLoading.vcxproj
StringOverLoading/StringOverLoading/StringOverLoading/StringOverLoading.vcxproj.filters
StringOverLoading/StringOverLoading/StringOverLoading/StringOverLoading.vcxproj.user

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com