- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
classString{char*str;intsize;voidError(interrorType,intbadIndex=0)const;public:String(char*s=“”);String(constStrings);~String(void);Stringoperator=(constStrings);Stringoperator=(char*s);intoperator==(constStrings)const;intoperator==(char*s)const;friendintoperator==(char*str,constStrings);intoperator!=(constStrings)const;intoperator!=(char*s)const;friendintoperator!=(char*str,constStrings);intoperator(constStrings)const;intoperator(char*s)const;friendintoperator(char*str,constStrings);intoperator=(constStrings)const;intoperator=(char*s)const;friendintoperator=(char*str,constStrings);intoperator(constStrings)const;intoperator(char*s)const;friendintoperator(char*str,constStrings);intoperator=(constStrings)const;intoperator=(char*s)const;friendintoperator=(char*str,constStrings);Stringoperator+(constStrings)const;Stringoperator+(char*s)const;friendStringoperator+(char*str,constStrings);voidoperator+=(constStrings);voidoperator+=(char*s);//StringfunctionsintFind(charc,intstart)const;intFindLast(charc)const;StringSubstr(intindex,intcount)const;voidInsert(constStrings,intindex);voidInsert(char*s,intindex);voidRemove(intindex,intcount);charoperator[](intn);operatorchar*(void)const;//StringI/Ofriendostreamoperator(ostreamostr,constStrings);friendistreamoperator(istreamistr,Strings);intReadString(istreamis=cin,chardelimiter=\n);intLength(void)const;intIsEmpty(void)const;voidClear(void);};voidString
您可能关注的文档
- 直流电复律和除颤及颅脑损伤.ppt
- 英汉词汇现象的对比-词序.ppt
- 组织市场和购买行为.ppt
- 研究生毕业、就业培训.ppt
- 自回归移动平均模型.ppt
- 自动塑料薄膜连续封口机操作要求.ppt
- 系统工程之INCOSE模式系统工程之RCI模式.ppt
- 生产经营单位安全生产管理.ppt
- 职业健康与防护用品使用.ppt
- 药化课件01药物化学第一章.ppt
- 220kV变电站主变压器泡沫喷淋灭火系统防误动控制方案研究.docx
- 2024消防水泵房施工方案.docx
- 密闭电石炉净化系操作说明--课件.ppt
- 小儿大动脉炎的科普知识.pptx
- 【备战25年高考数学】题型06 7类三角函数与三角恒等变换解题技巧(原卷版).docx
- 【备战25年高考数学】题型06 7类三角函数与三角恒等变换解题技巧(原卷版) (2).docx
- 2011年高考数学试卷(理)(天津)(空白卷).docx
- 【备战25年高考数学】题型08 10类球体的外接球及内切球解题技巧(解析版).docx
- 【备战25年高考数学】题型09 6类圆锥曲线离心率解题技巧(解析版).docx
- 【备战25年高考数学】题型08 10类球体的外接球及内切球解题技巧(原卷版).docx
最近下载
- 2025年湖南信息职业技术学院单招职业技能测试题库(有一套).docx VIP
- 2025年黑龙江交通职业技术学院单招职业技能测试题库带答案(新).docx VIP
- 2024年泸州中考数学试题及参考答案.doc
- 医用面膜培训ppt课件.pptx
- 教电馆200555号-胜利教育管理中心.DOC
- 智能制造与智能化焊接技术基础.pptx
- 功率因素校正(PFC)电路-PFC的工作原理课件.pptx
- 工伤保险医疗(康复)待遇申请表.doc
- 【数学】第六章平面向量及其应用单元测试-2023-2024学年高一下学期数学人教A版(2019)必修第二册.docx VIP
- 三亚航空旅游职业学院单招《语文》考试参考题库资料(含答案).pdf
文档评论(0)