Thanks Banfa....my previous problem is solved but now I have another question.
When mixing std::strings and character string literals like:
- std::string s1 = "hello"
-
std::string s2 = s1 + ", " + "world"
-
s2 should contain only one null at end of s2. Isn't it?
What happens to null that exist at end of s1 and character string literals ", " and "world"?
My guess is that std::string implementation (i.e. in my case gcc3.3.5) is responsible to delete null that appears in between "
concatenated parts". Am I guessing this right?
Thanks again...