From f0d1e58dbb58fbee952c58ffdc039e20de38314f Mon Sep 17 00:00:00 2001 From: Queequeg92 Date: Wed, 26 Nov 2014 20:32:35 +0800 Subject: [PATCH] Fix character mistake --- ch17/ex17.21/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ch17/ex17.21/main.cpp b/ch17/ex17.21/main.cpp index 90ef61e4..74440429 100644 --- a/ch17/ex17.21/main.cpp +++ b/ch17/ex17.21/main.cpp @@ -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 @@ -135,10 +135,10 @@ void format_record(ostream& os, const vector& 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; }