Answers for "how to merge string array in C++"

C++
0

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 ( << ) like output streams do.
Posted by: Guest on August-28-2020

Browse Popular Code Answers by Language