On 9/12/07, Rick <[EMAIL PROTECTED]> wrote:

> I want to create a string in C++ by starting with a base then adding
> more. In C i would do something like:
>
> char str[128];
>
> strcpy(str, "first part of string");
> strcat(str, "--second part of string");
>
> How would I do this in C++?

Use the string class. It's part of the C++ standard.

http://www.yolinux.com/TUTORIALS/LinuxTutorialC++StringClass.html

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to