Skip to content

Commit

Permalink
improved portability. check issue pezy#115 for detail.
Browse files Browse the repository at this point in the history
	modified:   ex8_13.cpp
  • Loading branch information
Mooophy authored and pezy committed Jan 2, 2015
1 parent be71c24 commit c1a0426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ch08/ex8_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

using std::vector; using std::string; using std::cin; using std::istringstream;
using std::ostringstream; using std::ifstream; using std::cerr; using std::cout; using std::endl;
using std::isdigit;

struct PersonInfo {
string name;
Expand All @@ -25,7 +26,7 @@ struct PersonInfo {

bool valid(const string& str)
{
return isnumber(str[0]);
return isdigit(str[0]);
}

string format(const string& str)
Expand Down

0 comments on commit c1a0426

Please sign in to comment.