I am having trouble trying to merge 2 strings into 1. Is this possible if so how is it done?
jonnie83
0
Newbie Poster
Recommended Answers
Jump to PostDo you mean concatenation? Are you using std::string or C-style strings (or other)? Can you post the code of you attempt that you are having trouble with (within CODE tags)?
Jump to PostYou have some major syntax issues here.
string1 username; string2 .txt;
You can't start a variable name with .. You are using string1 and string2 as though they are types; do you mean for each to be a string?
All 5 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
jonnie83
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
jonnie83
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.