Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - std string
Search - std string - List
STL中string的扩展类string_ex,给出许多扩展的操作字符串的非常使用的成员函数-STL string of extensions string_ex given many strings to expand the operation of the very use of the function
Date : 2008-10-13 Size : 4.58kb User : 罗少波

一个扩展的string类,增加了一些std::string所不支持而又常用的函数
Date : 2008-10-13 Size : 77.39kb User : Jingtian Jiang

指纹识别中的一个步骤分支点检测的实现,使用的是我个人编写的位图操作类,本位图操作类中的算法组,可以用于所有能够返回具有指针特性图像矩阵的文档操作类库。也就是说通用性很强。算法组还包括指纹识别算法,卷积函数。位图操作类包括的方法有 tmBmp(); tmBmp(const std::string & fname, BYTE clrBit = 8 ,DWORD imW = 256,DWORD imH = 256); virtual ~tmBmp(); //复制构造函数 tmBmp(const tmBmp & bmp); virtual const tmBmp & operator = (const tmBmp & init); //打开位图 virtual bool openBmp(const std::string fname); //另存位图 virtual bool saveBmp(const std::string fname); //保存位图 virtual bool saveBmp(); //创建一幅位clrBit位,宽imw高imH的位图 virtual bool createBmp(const std::string fname,BYTE clrBit,DWORD imW,DWORD imH); //从灰度数组,创建灰度图像 template bool createGrayBmp(T * imArray,DWORD imW,DWORD imH); //释放读入的图像 virtual void releaseBmp(); //获得图像的宽度 DWORD getWidth(); //获得图像的高度 DWORD getHeight(); //获得颜色位数 WORD getClrBit(); //显示位图信息 void showBmpInfo(); //获取调色板某一元素的值,存入RGBQuad bool getRGBQuad(RGBQuad &, BYTE index); //用RGBQuad更改调色板某一元素的值 bool setRGBQuad(RGBQuad &, BYTE index); //重命名位图 void rename(const std::string fname = "新建位图.bmp"); //颜色反转 virtual void reverseColor(); //将一幅图片的像素区,装换为灰度值数组 template bool tranToArray(T * pixelArray); //如果是8位以内的图像本函数为 //在图像上(x,y)处画颜色索引为redPart的点 //对于16,24,32位的图像为 //在图像上(x,y)处画颜色为redPart+greenPart+bluePart的点 //x为行号,y为列号 bool putPixel(DWORD x,DWORD y,BYTE redPart=0,BYTE greenPart=0,BYTE bluePart=0);
Date : 2009-04-09 Size : 15.35kb User : tr0217

STL中string的扩展类string_ex,给出许多扩展的操作字符串的非常使用的成员函数-STL string of extensions string_ex given many strings to expand the operation of the very use of the function
Date : 2025-07-04 Size : 4kb User : 罗少波

与mfc中的cstring一样功能的,c语言代码,非常好-with mfc cstring the same function, c language code, a very good
Date : 2025-07-04 Size : 56kb User : tom

一个扩展的string类,增加了一些std::string所不支持而又常用的函数-An extension of the string type, an increase of some std:: string does not support, and commonly used function
Date : 2025-07-04 Size : 77kb User : Jingtian Jiang

StdString类,功能类似于CString确实std::string实现.-StdString category, function similar to CString does std:: string implementation.
Date : 2025-07-04 Size : 23kb User : yqs

popcapframework1.3版,这是著名的PopCap游戏公司,不知道的话,祖玛应该知道吧,这些游戏都是用这个框架开发的,现在PopCap将它开源了!-PopCap Games Framework Version 1.3 Changes General * Removed support for Visual Studio/Visual C++ 6. If you use these versions, you will need to update your project files manually. o Note: you can download Visual Studio 2005 Express edition for free from Microsoft (http://msdn.microsoft.com/vstudio/express/) * PAKfile support- See docs/Pak Resource File Support.doc * Added support for wide displays and for windowed emulation of wide displays. * Some wide string/localization related changes to strings/chars: Use the WideString.vcproj projects for widestring support * Added support to draw anti-aliased lines/polygons. * Cached WAV files are "encrypted" (weakly) to prevent the easy copying of sound resources. * All demos were made to be widestring compatible and we added corresponding widestring projects. std::string has been replaced with SexyString, char with SexyChar, and a few std::string to SexyString conversion functions are no
Date : 2025-07-04 Size : 8.32mb User : blueseaineye

方法 long Proc_data_end_loop(std::map<std::string,ValueUnit>::iterator ValueUnitIte_1) 实现同key值在map中同时存在,树与队列的集合,有点儿水-Method of long Proc_data_end_loop (std:: map <std::string,ValueUnit> :: iterator ValueUnitIte_1) to achieve the same key value exists in the map at the same time, the tree with a collection of queues, a little water
Date : 2025-07-04 Size : 5kb User : xb

std::string并没有提供所有需要方法。所以,需要用STL提供了算法库、字符串流以及现存的std::string的方法来实现它们。 ※ 将字符串转换为大写/小写 ※ 去掉字符串两端的空格 ※ 忽略大小写比较字符串 ※ StartsWith和EndsWith ※ 从字符串解析出int和bool等类型的值 ※ 将各种数值类型转换成字符串(toString) ※ 拆分字符串和Tokenizer-std:: string does not provide all the necessary means. Therefore, the need to use STL provides a library of algorithms, string streams, as well as the existing std:: string methods to achieve them. ※ convert a string to uppercase/lowercase ※ remove the spaces at both ends of the string ※ Comparison of strings ignoring case ※ StartsWith and EndsWith ※ From the string parsing out the int and bool types of values such as ※ all kinds of numeric type conversion into a string (toString) ※ split strings and Tokenizer
Date : 2025-07-04 Size : 4kb User : 方启

DL : 0
字符串处理是程序设计语言的一个重要的组成部分。有的字符串是内置的(VB等),有的是模拟的(C字符串为字符集合,算法等以库的形式提供),而C++所提供的字符串std::string是以库的形式提供。-C puls plus
Date : 2025-07-04 Size : 274kb User : changzhizhang

自己封装一个相对stl和std::string字符串模板类,名字叫做动态字串符,希望给初学者有些启示-Their packaging and a relatively stl std:: string string template class name is dynamic string break, want to give some inspiration for beginners
Date : 2025-07-04 Size : 2kb User : a

一个VC++中写的的Std String类源代码,推荐给朋友们。希望对大家有所帮助-A VC++ source code in StdString class can improve the alternative string class CString support ansi, unicode. Actually used in a number of projects for a while, I feel great and recommend it to friends. We want to help
Date : 2025-07-04 Size : 24kb User : madud00015

有名的词典查询 自动生成10000个单词然后找他的类似词。。。 -//Dictionary #include <iostream> #include <fstream> #include <string> #include <time.h> #define maxsize 10000000 #define exp_n 10000 using namespace std string word[maxsize] //words of dictionary int word_n //number of words int fn //number of words found int fl[26] int compare_n void Input_data() { int i word_n=0 ifstream infile("dict.txt") while(!infile.eof()){ infile>>word[word_n] //ucase letter convert to lcase letter for(i=0 i<word[word_n].length() i++) if(char(word[word_n][i]) < a ) word[word_n][i]+= a - A word_n++ } infile.close() } int char_int_converter(char c) { if(c<= z && c>= a ) return c- a if(c<= Z && c>= A ) return c- A cout<<"Error!"<<endl exit(0) } int Inword(string ss,int srt,int nd,int &pos)//confirm the word in dictionary or not { //find area:srt is start position nd is end position int k int startw=srt,endw=nd
Date : 2025-07-04 Size : 1.08mb User : 秘密

Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract- Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class. It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor and getPhoneNumber() function
Date : 2025-07-04 Size : 26kb User : asdaa

Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract- Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class. It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor and getPhoneNumber() function
Date : 2025-07-04 Size : 27kb User : asdaa

Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract- Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPho
Date : 2025-07-04 Size : 26kb User : asdaa

Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract- Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class. It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor and getPhoneNumber() function
Date : 2025-07-04 Size : 46kb User : asdaa

Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract- Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class. It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor and getPhoneNumber() function
Date : 2025-07-04 Size : 402kb User : asdaa

DL : 0
包含c++ 文件流操作 std::string操作(Include c++ file stream and std::string)
Date : 2025-07-04 Size : 2.51mb User : 夏天Ada
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.