
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
Edition 2ISBN: 978-0131409095
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
Edition 2ISBN: 978-0131409095 Exercise 6
The following exercises ask you to write functions to do various kinds of string processing. To test these functions you should write driver programs as instructed in Programming Problems 13-23 at the end of this chapter.
Write a function that, given the three components of a name (the first name, middle name or initial, and last name), returns a single string consisting of the last name, followed by a comma, and then the first name and middle initial. For example, given "John", "Quincy", and "Doe", the function should return the string "Doe, John Q.".
Write a function that, given the three components of a name (the first name, middle name or initial, and last name), returns a single string consisting of the last name, followed by a comma, and then the first name and middle initial. For example, given "John", "Quincy", and "Doe", the function should return the string "Doe, John Q.".
Explanation
Function:
The function to modify the fi...
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
Why don’t you like this exercise?
Other Minimum 8 character and maximum 255 character
Character 255