C 截取字符串
来源:互联网 发布:编程一小时怎么登陆 编辑:程序博客网 时间:2024/05/19 23:14
#include #include //+------------str is the String that will be split---------------+////+------------bystr is the string by which to split str----------+////+------------str_array is the array to save splited str---------+//void split(const CString str,const CString bystr,CStringArray *str_array){int nLen = bystr.GetLength();int preLoc = 0;int nowLoc = 0;while(true){nowLoc = str.Find(bystr,preLoc);if(nowLoc == -1&&preLoc == 0){CString substr3=str;str_array->Add(substr3);break;}if(nowLoc == -1&&preLoc != 0){CString substr2=str.Mid(preLoc);str_array->Add(substr2);break;}CString substr = str.Mid(preLoc,nowLoc-preLoc);str_array->Add(substr);preLoc=nowLoc + nLen;}}
- 字符串截取(C#)
- C 截取字符串
- C -- 截取字符串
- c语言 字符串截取
- C#-截取字符串----ShinePans
- C#---截取字符串
- C 字符串截取
- C字符串截取函数
- c++Csring 截取字符串
- C 截取字符串
- c字符串截取
- C语言截取字符串
- C语言 字符串截取
- c中字符串截取
- c++MFC 截取字符串
- [C#][转][string 字符串截取
- 【C语言】截取字符串实现
- jstl-c标签截取字符串
- 事件(event)设计准则(一)
- 事件(event)设计准则(二)
- Java程序中使用oracle数据库LOB字段的总结
- 读网080202
- C# 学习自定义控件 再做一个ip地址控件(经过测试的)
- C 截取字符串
- Struts控制器组件
- Alfresco中的错误机制处理
- VC中调用JavaScript的代码片段
- 网站移出
- 在线刷机详细教程(图文)〓诺基亚——NSS修改CODE+NSU升级
- 电台
- WinForm 常遇问题解答(1)
- 建立合理索引提高SQL Server性能