0

I have 2 strings, Text1 and Text2 below. What I am trying to do is to put these to a new string(Text1and2) so that string will contain this: "One,Two"
I have began on some code and wonder if I am on the right track here. Later I will push_back it as in the code.

std::string Text1and2;
std::string Text1;
std::string Text2;

std::vector<string> Sort;

Text1 = "One";
Text2 = "Two";

Text1and2 =        // ???

Sort.push_back(Text1and2);
2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by Jennifer84
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.