[Dev-C++] regarding string manipulation (to James & Ramana & Biswa)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alan T. <ala...@3n...> - 2001-01-02 15:43:32
|
Regarding recent string manipulation messages:
James,
Exactly where can I find the documentation on the std C++ string
classes? Thanks, Alan
From: James Gordon <Jam...@Cl...>
C++ Strings have a lot of the functionality of the str... type functions
built into the classes. If you need to pass a char* to a function you can
use c_str() which returns a char*. Best to read the doc's.
Ramana, and/or Biswa:
I started out using C++ mostly like a variation of C. However, I
have found that it is VERY easy to make your program hang using "char
*some_string" for string manipulation --- esp. if you pass a parameter of
the form "char *some_string" vice "char some_string[]". Since I am doing a
lot of string manipulation, I think going with some sort of string class
would be best. I, like you, have not determined the right approach yet. (I
am a little less concerned with efficiency for my applications.)
My question is: What is the "C++ string class" as opposed to the
"STL stuff"? Thanks, Alan
|