Skip to content

Commit

Permalink
modify the format of ex9_43_1.cpp and ex9_43_2.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
XDXX committed Apr 17, 2015
1 parent c203559 commit d52fba8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ch09/ex9_43_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
// @Brief Write a function that takes three strings, s, oldVal, and newVal.
// Using iterators, and the insert and erase functions replace
// all instances of oldVal that appear in s by newVal.
// Test your function by using it to replace common abbreviations,
// Test your function by using it to replace common abbreviations,
// such as “tho” by “though” and “thru” by “through”.
// @notice This program doesn't compile on GCC because GCC(4.9.2) doesn't
// support the feature of c++11 which the
// support the feature of c++11 which the
// insert(iterator p, InputIterator first, InputIterator last) function
// could return an iterator.So please use VS(2012+) or clang instead.
// Or you can see the cross-platform version(ex9_43_2.cpp) of this exercise.
// could return an iterator.So please use VS(2012+) or clang instead.
// Or you can see the cross-platform version(ex9_43_2.cpp) of this exercise.

#include <iterator>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion ch09/ex9_43_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @Brief Write a function that takes three strings, s, oldVal, and newVal.
// Using iterators, and the insert and erase functions replace
// all instances of oldVal that appear in s by newVal.
// Test your function by using it to replace common abbreviations,
// Test your function by using it to replace common abbreviations,
// such as “tho” by “though” and “thru” by “through”.
// @notice This program could compiled with GCC well.But it doesn't use some c++11
// features.There is another version(ex9_43_1.cpp) of this exercise which
Expand Down

0 comments on commit d52fba8

Please sign in to comment.