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

求string 类源码

楼主x_o_x(一生何求)2006-02-06 21:13:19 在 C/C++ / 非技术区 提问

谁有string类的源码,可以实现=,<,>,==,输入,输出等运算 问题点数:40、回复次数:2Top

1 楼Cantonese00((⊙_⊙))回复于 2006-02-06 22:29:24 得分 30

帮LZ查了一下MSDN:  
  Illustrates   how   to   use   the   string::operator!=   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator!=(    
              const   basic_string<_E,   _TYPE,   _A>&   LString,  
              const   _E   *RCharArray    
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator!=(    
              const   _E   *LCharArray,  
              const   basic_string<_E,   _TYPE,   _A>&   RString    
        );  
   
   
  Illustrates   how   to   use   the   string::operator+   STL   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        basic_string<_E,   _TYPE,   _A>  
        operator+(    
              const   basic_string<_E,   _TYPE,   _A>&   LString,  
              const   _E   *RCharArray    
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        basic_string<_E,   _TYPE,   _A>  
        operator+(    
              const   _E   *LCharArray,  
              const   basic_string<_E,   _TYPE,   _A>&   RString    
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        basic_string<_E,   _TYPE,   _A>  
        operator+(    
              const   basic_string<_E,   _TYPE,   _A>&   LString,  
              const   _E   RChar    
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        basic_string<_E,   _TYPE,   _A>  
        operator+(    
              const   _E   LChar,  
              const   basic_string<_E,   _TYPE,   _A>&   RString    
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        basic_string<_E,   _TYPE,   _A>  
        operator+(    
              const   basic_string<_E,   _TYPE,   _A>&   LString,  
              const   basic_string<_E,   _TYPE,   _A>&   RString    
        );  
     
   
  Illustrates   how   to   use   the   string::operator<   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator<(const   basic_string<_E,   _TYPE,   _A>&   LString,  
        const   _E   *RCharArray);  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator<(const   _E   *LCharArray,  
        const   basic_string<_E,   _TYPE,   _A>&   RString);  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator<(const   basic_string<_E,   _TYPE,   _A>&   LString,  
        const   basic_string<_E,   _TYPE,   _A>&   RString);  
   
   
   
  Illustrates   how   to   use   the   string::operator<<   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
  basic_ostream<_E,   _TYPE>&  
  operator<<(   basic_ostream<_E,   _TYPE>&   OStream,  
                          const   basic_string<_E,   _TYPE,   _A>&   XString);  
   
   
   
  Illustrates   how   to   use   the   string::operator<=   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator<=(const   basic_string<_E,   _TYPE,   _A>&   LString,  
        const   _E   *RCharArray);  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator<=(const   _E   *   LCharArray,  
        const   basic_string<_E,   _TYPE,   _A>&   RString);  
   
   
  Illustrates   how   to   use   the   string::operator==   STL   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator==(  
              const   basic_string<_E,   _TYPE,   _A>&   LString,  
              const   _E   *RCharArray  
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator==(  
        const   _E   *   LCharArray,   const   basic_string<_E,   _TYPE,   _A>&   RString  
        );  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator==(  
        const   basic_string<_E,   _TYPE,   _A>&   LString,  
        const   basic_string<_E,   _TYPE,   _A>&   RString  
        );  
     
   
  Illustrates   how   to   use   the   string::operator>   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator>(const   basic_string<_E,   _TYPE,   _A>&   LString,  
        const   _E   *RCharArray);  
  template<class   _E,   class   _TYPE,   class   _A>   inline  
        bool   operator>(const   _E   *LCharArray,  
        const   basic_string<_E,   _TYPE,   _A>&   RString);  
   
   
  Illustrates   how   to   use   the   string::operator>>   Standard   Template   Library   (STL)   function   in   Visual   C++.  
  template<class   E,   class   TYPE,   class   A>   inline  
        basic_istream<E,   TYPE>&  
        operator>>(basic_istream<E,   TYPE>&   InStream,  
        basic_string<E,   TYPE,   A>&   String);  
     
   
     
   
   
     
   
     
   
     
     
  Top

2 楼Cantonese00((⊙_⊙))回复于 2006-02-06 22:30:56 得分 10

建议LZ装个MSDN方便查找哈。。。Top

相关问题

  • 求string一些库实现源码
  • 这个类有什么用,有源码
  • 哪有牌类游戏的源码?
  • 求类似ULTRAEDIT编辑器的源码?
  • 100分求类似网站源码.急
  • 如何将中文String转成UTF-8字符集?(请给出DELPHI源码)急急……
  • 找到了.NET的类库源码,请问哪里有MFC的源码下载。谢谢!
  • [求 源 码]求一个类似163 /126邮箱系统的PHP项目源码!谢先
  • &&&&&&&&&&&源码源码,请进...
  • 如何快速查到一个MFC类的源码。

关键词

  • visual c++
  • basic
  • template
  • stl
  • visual
  • lstring
  • rstring
  • lchararray
  • rchararray
  • inline bool

得分解答快速导航

  • 帖主:x_o_x
  • Cantonese00
  • Cantonese00

相关链接

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

广告也精彩

反馈

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