On Fri, 07 May 2004 19:51:25 GMT, Mateusz Łoskot
<> wrote:
>Hi,
>
>Simple question, in STL compatible application
>should one use std::string or char[] / char*
>types for working with strings ?
>
>How to make decision ? What rulse should I consider ?
>
>It may be a very trivial, but I ask for some others experience
>rather than for explanation of 'How to use strings' ?
>
>Thanks & regards
char *'s may save you a bit of memory and run a teeny bit faster if you
code them optimally; all the other factors (clarity, maintainability,
modularity, cost to develop, cost to debug, etc.) are in std::string's
favor. Here's a case study:
http://www.bdsoft.com/resources/thinking.html
-leor
--
Leor Zolman --- BD Software ---
www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html