|
|
|
|
|
by scoutt
1438 days ago
|
|
Sorry. I don't know if you are saying that you won't be able to concatenate strings without operators, or if you choose a language just because it allows you to use a "a = b + c" form with strings. For the first case, of course you can create something like: str1.append(str2);
For the second... I don't know what to say.> framing it as a personal preference But follow my logic for a moment: if "str3 = str1 + str2" concatenates a string, what "str3 = str1 - str2" should do? (Yes I know there is no minus operator for std::string) And "str3 = str1 * str2"? And "str3 = str1 % str2"? |
|