您的位置:首页 > 其它

聊聊手机网游(一)

2008-01-03 09:31 302 查看
http://www.vczx.com/article/show.php?id=845

(一) 概述

string和CString均是字符串模板类,string为标准模板类(STL)定义的字符串类,已经纳入C++标准之中;

CString(typedef CStringT

作用char*stringCString
查找指定值strchr
strstr
strrstr
strspn
findFind
第一个匹配的值 fild_first_ofFindOneOf
从后面开始查找  ReserveFind
指定匹配方式 find_if 
注:find_if中是把范围内的值挨个代入匹配函数直至返回true

b) 比较

作用char*stringCString
查找指定值(区分大小写)strcmp
strncmp
strcoll
_strncoll
operator<
operator>
operator<=
operator>=
operator==
operator!=
Collate

Compare
查找指定值(不区分大小写)_stricmp
_strnicmp
_stricoll
_strnicoll
 CollateNoCase

CompareNoCas
注:返回值如果<0则前面的值小于后面的值,反之亦然

c) 替换

作用char*stringCString
查找指定值_strset
_strnset
replace
replace_copy
replace_copy_if
replace_if
Replace
d) 插入

作用char*stringCString
查找指定值 insertInsert
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: