Skip to content

Commit

Permalink
Merge pull request pezy#116 from CoutingStars/patch-1
Browse files Browse the repository at this point in the history
Update ex9_51.cpp
  • Loading branch information
pezy authored May 4, 2017
2 parents 9cd675a + 4fb1069 commit afacac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch09/ex9_51.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ wy_Date::wy_Date(const std::string& s)
case 0x10:
day = std::stoi(s.substr(0, s.find_first_of("/")));
month = std::stoi(s.substr(s.find_first_of("/") + 1,
s.find_first_of("/") - s.find_last_of("/")));
s.find_last_of("/") - s.find_first_of("/")-1));
year = std::stoi(s.substr(s.find_last_of("/") + 1, 4));
break;

Expand Down

0 comments on commit afacac5

Please sign in to comment.