Question: Modify cat_dot() from the previous exercise to take a string to be used as the separator (rather than dot) as its third argument. Data from
Modify cat_dot() from the previous exercise to take a string to be used as the separator (rather than dot) as its third argument.
Data from Previous Exercise
Write a function, string cat_dot(const string& s1, const string& s2), that concatenates two strings with a dot in between. For example, cat_ dot("Niels", "Bohr") will return a string containing Niels.Bohr.
Step by Step Solution
3.52 Rating (166 Votes )
There are 3 Steps involved in it
ANSWER include include using name... View full answer
Get step-by-step solutions from verified subject matter experts
