Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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.
 
PREVIOUS NEXT
Tagged: #merge #string #array
ADD COMMENT
Topic
Name
1+6 =