Skip to content

Files

Latest commit

 

History

History

45

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Exercise 9.45

Write a function that takes a string representing a name and two other strings representing a prefix, such as "Mr." or "Ms." and a suffix, such as "Jr." or "III". Using iterators and the insert and append functions, generate and return a new string with the suffix and prefix added to the given name.

Solution

See 45.cc.