CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C/C++ >  C语言

一些代码实在不能理解,请教高手指点。

楼主myhpux(地下领主)2002-05-07 11:42:00 在 C/C++ / C语言 提问

class   IntArray   {  
  public:  
  //   equality   and   inequality   operations:   #2b  
  bool   operator==(   const   IntArray&   )   const;   //**********  
  bool   operator!=(   const   IntArray&   )   const;   //**********  
  //   assignment   operator:   #2a  
  IntArray&   operator=(   const   IntArray&   );   //**********  
  int   size()   const;   //   #1  
  void   sort();   //   #4  
  int   min()   const;   //   #3a  
  int   max()   const;   //   #3b  
  //   if   the   value   is   found   within   the   array,  
  //   return   the   index   of   its   first   occurrence  
  //   otherwise,   return   -1  
  int   find(   int   value   )   const;   //   #3c  
  private:  
  //   the   private   implementation  
  };  
  带“**********”注释的3行,怎么理解? 问题点数:20、回复次数:2Top

1 楼seashoreboy(海滨)回复于 2002-05-07 11:47:43 得分 5

不就是运算符重载吗?Top

2 楼bookwormc(Kai)回复于 2002-05-07 12:13:33 得分 15

The   program   is   overloading   the   operators   "==","!="   and   "=".Top

相关问题

  • 有一页面三秒后自动跳转的代码我不能理解,望指点!
  • rose不能生成代码问题,谢谢前辈指点~~~
  • 一行代码,总不能通过,大家指点.谢谢
  • 初学asp.net,对于sdk文档中的一行代码不理解,请指点!
  • 代码在这,请指点
  • 请高人指点代码~~~~~~~
  • 我这段代码怎么不能成功啊请指点一下,谢谢阿很急的 ?????????
  • hook函数:如何获取菜单中的文字.这段代码不能正常工作,请指点
  • 请指点下面代码的涵义
  • 五子棋代码请指点。

关键词

  • intarray
  • operators
  • const

得分解答快速导航

  • 帖主:myhpux
  • seashoreboy
  • bookwormc

相关链接

  • C/C++ Blog
  • C/C++类图书
  • C/C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo