聊聊手机网游(一)

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值