M
metamorphiq
Hello,
I'm a Java programmer, so I'm probably asking a very simple question
here, but I have trouble solving it
I'd like to know how you concatenate multiple (4, in my case) char* in
C++, and have the result as a char*.
I first tried using strcat, but you need a const char* as the second
parameter to work, but I don't know all the issues regarding const
chars, so maybe I overlooked something.
Then I've tried converting them to strings, and it works, but I can't
convert the result to a char* because c_str() gives me a const char*.
Or maybe I could take the value of the const char* somehow and plug it
in the char* result?
Thank you very much,
--Chris.
I'm a Java programmer, so I'm probably asking a very simple question
here, but I have trouble solving it
I'd like to know how you concatenate multiple (4, in my case) char* in
C++, and have the result as a char*.
I first tried using strcat, but you need a const char* as the second
parameter to work, but I don't know all the issues regarding const
chars, so maybe I overlooked something.
Then I've tried converting them to strings, and it works, but I can't
convert the result to a char* because c_str() gives me a const char*.
Or maybe I could take the value of the const char* somehow and plug it
in the char* result?
Thank you very much,
--Chris.