Skip to content

Commit

Permalink
Fix character mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Queequeg92 committed Nov 26, 2014
1 parent 6425893 commit f0d1e58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ch17/ex17.21/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
***************************************************************************/
//!
//! Exercise 17.21
//! Rewrite your phone number program from ¡ì 8.3.2 (p. 323) to use the
//! Rewrite your phone number program from 8.3.2 (p. 323) to use the
//! valid function defined in this section.

#include<iostream>
Expand Down Expand Up @@ -135,10 +135,10 @@ void format_record(ostream& os, const vector<PersonInfo>& people)
}
}

if (badNums.str().empty()) //£¡ there were no bad numbers
os << entry.name << " " //£¡ print the name
<< formatted.str() << endl; //£¡ and reformatted numbers
else //£¡ otherwise, print the name and bad numbers
if (badNums.str().empty()) //! there were no bad numbers
os << entry.name << " " //! print the name
<< formatted.str() << endl; //! and reformatted numbers
else //! otherwise, print the name and bad numbers
cerr << "input error: " << entry.name
<< " invalid number(s) " << badNums.str() << endl;
}
Expand Down

0 comments on commit f0d1e58

Please sign in to comment.