码迷,mamicode.com
首页 > 其他好文 > 详细

字符串操作专题

时间:2017-02-22 16:59:43      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:字符串   string   class   font   uri   efi   find   tab   mil   

CString

一、字符串切割问题:

CString str="country\\china";
#取\号之前的子串:

CString a;
int n;
n=str.ReverseFind(‘\\‘);
a=str.Left(n);

#取\号之后的子串:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

字符串操作专题

标签:字符串   string   class   font   uri   efi   find   tab   mil   

原文地址:http://www.cnblogs.com/tinaluo/p/6429475.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!