码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
boost之mutex scoped_lock
1.boost里的互斥量类型由mutex表示。代码示例:12345678910111213141516171819202122232425#include #include #include #include #include usingnamespacestd;usingnamespaceboos...
分类:其他好文   时间:2014-06-16 00:06:34    阅读次数:399
list<> 中find的使用
昨天要在 std::list 中判断是否存在某一字符串 std::string 。我首先想先迭代+std::string自带的"==" 判断,也就是 list listStr; string s1; for(vector::iterator itr=lis...
分类:其他好文   时间:2014-06-15 23:55:32    阅读次数:386
Python 字符串操作(string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等)
去空格及特殊符号 s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2) sStr1 = 'strcpy' sStr2 = sStr1 sStr1 = 'strcpy2' print sStr2连接字符串#strcat(sStr1,sStr2)...
分类:编程语言   时间:2014-06-15 23:51:33    阅读次数:341
大龙谈字符串截取
string str = "大龙喜欢zzm"; string s1 = str.Substring(0, 2); string s2 = str.Substring(2, 2); string s3 = str.Substring(4); Console.WriteLine(str[0]); ...
分类:其他好文   时间:2014-06-15 08:14:34    阅读次数:207
Android获取百度音乐的音乐下载地址和歌词下载连接
首先通过你要下载的歌曲通过下列连接: http://box.zhangmen.baidu.com/x?op=12&count=1&title={title}$${author}$$$$ 可以获取一个xml文件通过解析xml文件就可以读取到音乐下载的地址和歌词下载的地址。 部分代码:   String title = "六月的雨";   String singer = "胡歌";     ...
分类:移动开发   时间:2014-06-14 07:01:42    阅读次数:334
C++String类关键操作简介
1.string 类的头文件 #include using std::string; 2.string 类的构造函数 string s1; //默认的构造函数,s1为空串 string s2(s1); //将s2初始化为s1的一个副本,对s2的操作不会影响s1 string s3("value"); //将s3初始化为一个字符串字面值的副本 string s4(n,'c'); /...
分类:编程语言   时间:2014-06-13 21:57:28    阅读次数:394
导出Excel1 - 项目分解篇
我们在所有的MIS系统(信息管理系统)中都能见到他。所以我们把这个通用功能提出来。        项目名称:车辆信息管理系统(中石化石炼)        项目负责人:xiaobin        项目时间:2006.12 - 2007.2       Excel功能模块:      单击事件(Event):      procedure EXCELE1Click...
分类:其他好文   时间:2014-06-13 21:51:18    阅读次数:343
C++ 常用类 string类
===6.3.2使用string对象=== string word="I love China" *链接字符串* string description=adjective  + " " + word; _Note_: 不能连接两个字符串字面量,下面的语句是错误的 string test= "I have" + "a dream"; ===6.3.3访问字符串中的字符...
分类:编程语言   时间:2014-06-13 21:39:55    阅读次数:367
【足迹C++primer】27、vector对象是如何增长的
vector对象是如何增长的 当需要更多空间的时候,会重新分配比新空间需求更大的内存空间,作为备用 管理容器的成员函数 shrink_to_fit //只适用于vector,string,deque capacity reserve //只适用于vector,string c.shrink_to_fit() //请将capacity()减少为与size相同大小 c.c...
分类:编程语言   时间:2014-06-13 20:51:16    阅读次数:279
C++ HUSTR与两个版本的HUMAP实现
/* hustr是一个我使用很方便的字符串类,管理使用很方便, 新的humap支持多级存储各种信息,使用及其方便 旧的humap只支持字符串存储,使用方法一样 */ #include #include #include #include #include #include #include using namespace std; void erre...
分类:编程语言   时间:2014-06-13 20:47:08    阅读次数:351
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!