Skip to content

Commit

Permalink
Update ex9_46.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy authored and pezy committed Jun 24, 2015
1 parent 8fed2a5 commit fb80272
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ch09/ex9_46.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
#include <iostream>
#include <string>

std::string
pre_suffix(const std::string &name, const std::string &pre, const std::string &su)
std::string pre_suffix(const std::string &name, const std::string &pre, const std::string &su)
{
std::string ret(name);
ret.insert(0, pre);
Expand All @@ -28,4 +27,4 @@ int main()
std::cout << pre_suffix(name, "Mr.", ",Jr.");

return 0;
}
}

0 comments on commit fb80272

Please sign in to comment.