Thank you for that. I was kinda looking for a simple solution like
CHAR* str1 = "string A";
CHAR* str2 = "string B";
CHAR* str3 = str1 + str2;

This is so easy to do in Delphi... I don't know why there is no overloaded '+' 
operator do this.

TFE
http"//totallyfreeenergy.zxq.net 

--- In [email protected], John Gaughan <j...@...> wrote:
>
> totallyfreeenergy wrote:
> > What is the easiest way to continuously catenate strings without having to 
> > allocate any memory/size of destination string. I am using VC++ 2008 
> > express. Many thanks in-advance for any info on this.
> >   
> 
> Reserve enough capacity that you do not need to reallocate later on. 
> Example:
> 
> std::string buffer;
> buffer.reserve(10000);
> buffer.append("string1");
> buffer.append("string2");
> // etc
> 
> -- 
> John Gaughan
> http://www.jtgprogramming.org/
>


Reply via email to