What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-03 07:21:05
how to merge string array in C++
For string concatenation in C++, you should use the + operator. std::string nametext = "Your name is " + name; where operator + serves to concatenate strings. nametext is an std::string but these do not have the stream insertion operator ( <&... Add solution