
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
النسخة 2الرقم المعياري الدولي: 978-0131409095
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
النسخة 2الرقم المعياري الدولي: 978-0131409095 تمرين 7
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.
Proceed as in Exercise 6, but design the function to accept a single string object consisting of a first name, a middle name or initial, and a last name. As before, the function should return 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 Doe", the function should return the string "Doe, John Q.".
Proceed as in Exercise 6, but design the function to accept a single string object consisting of a first name, a middle name or initial, and a last name. As before, the function should return 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 Doe", the function should return the string "Doe, John Q.".
التوضيح
Function:
The function is to modify the...
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
لماذا لم يعجبك هذا التمرين؟
أخرى 8 أحرف كحد أدنى و 255 حرفاً كحد أقصى
حرف 255