首页 »标签 » java中的string类 » 列表
2008年10月1日java中的string:c#中String和string的区别
1.string是c#中的类,String是.net Framework的类(在c# IDE中不会显示蓝色) ; 2.c# string映射为.net Framework的String ; 3.如果用string,编译器会把它编译成String,所以如果直接用String就可以让编译器少做一点点工作 ; 4.如果使用c#,建议使用string,比较符合规范 ; 5.string始终代表 System.String(1.x) 或 ::System.String(2.0) ; 6.String只有在前面有using System;的时候并且当前命名空间中没有名...
[阅读全文] [PDF]
2008年9月25日java中的string类:C++中string类的使用方法
如果所比较的两个string 相等,则返回0; 操作string 大于参数string,返回
正数;操作string 小于参数string,返回负数。
(1) 比较操作string 与 _Str 或C-string _Ptr
int compare( const basic _ string& _Str ) const;
int compare( const value _ type* _Ptr ) const;
int com = s.compare ( sp );
(2) 比较操作string 中 _Pos1 ( 下标...
[阅读全文] [PDF]
1 共2条 分1页