Topic profile page for Std string.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Std string.
Topic "Std string" was discussed 2,174 times on 136 sites in last 3 months
Started 2 weeks, 1 day ago (2009-11-15 23:02:00)
by Lim Bio Liong
Hello All, I have a question on the use of std::find() on a vector that contains std::string objects. When I need to do a search on a vector of strings, I currently use the std::find() algorithm, e.g. : std::vector::iterator theIterator; theIterator = std::find ( vecStrings.begin(), ...
Started 3 weeks ago (2009-11-09 13:55:00)
by bajajv
Hello, I am trying to implement the CString class. I can implement the functions using the standard namespace string class, but not sure whether it will support the wide characters or not. Also, please suggest that how can I check for characters of other languages? Can I get characters of other languages by changing the language settings of my machine?
Started 3 weeks, 4 days ago (2009-11-05 19:24:00)
by Swerve
I have a task to do about the std::string datatype. To do the task I need to use the KDevelop IDE and be able to find the size of the buffer being used when performing operations upon strings, but never having used KDevelop before, I'm at a complete loss. Could anyone be so kind as to give me some direction as how to go about viewing a buffer which is in use? Can it's contents be ...
Started 3 weeks, 5 days ago (2009-11-04 13:20:00)
by jcoffland
A simple example, which I've attached, causes the Intel compiler (11.1 059 Linux) to take a very long time to compile, use a lot of memory and in some cases crash. I've also observed the same problems in the Intel complier for windows. $ time icpc -o string_in_array string_in_array.cpp Fatal compilation error: Out of memory asking for 36872. compilation aborted for string_in_array.cpp (...
Started 1 month ago (2009-10-28 09:52:00)
by StasV
Hello! I have such a function. Code: TBuf Utils::LoadMessageL(int mesageId) { TBuf text; text.Copy(_L("Some text")); return text; } Everything works just fine. But code scanner in carbide IDE tells me, that I am returning-descriptor-out-of-scope. Am I? Please, note, that Code: iUserManager->iUserLogin= iUserLogin; also works fine for me. ...
Started 1 month, 1 week ago (2009-10-24 16:03:00)
by bengreenwood
Hi, I have a function in a program that's something like the following. When I try to output what it returns, however, it doesn't print anything on the screen. The following isn't exactly what I'm using, but it gets the point across. Code: const char* getcolor(bool top) { stringstream color_convert; string string1; if (top == 1) color_convert
Started 1 month, 2 weeks ago (2009-10-12 01:00:00)
by jh7777
Hi there I wonder if anyone could help me with the following C++ question: I've been given a custom-made string class which handles string, wstring and bstr. It has a number of methods and assignment operators to convert to and from different types. The app I work on compiles happily in VS6 and VS2008, but when trying to compile in Redhat (version 4.1.1 in Redhat 5.0), for example for ...
Started 5 days, 21 hours ago (2009-11-25 14:28:00)
by Mac LAK
Citation: Envoyé par camboui Sinon je ne suis pas d'accord. Le caractère zéro qui se trouve à la fin d'une chaine de caractère (en C ou C++) fait partie de la chaine. Non. La preuve : Code : char test_null [ 6 ] = "abc \0 d \0 " ; Essaie de trouver un strlen valant 6 avec cette chaîne......
Started 2 days, 12 hours ago (2009-11-29 00:04:00)
by Banfa
OK I understand. In your operator you need to read a fixed amount of data at a time, probably 1 char to prevent the function from accidentally reading data destined for a different String. Having got the character you need to check it to see if it meets your end condition; that is if it is whatever character you are going to say delimits strings, for std::string that is any white space but ...