Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng668 authored Sep 10, 2016
1 parent e6d4f88 commit 9958a57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ch17/ex17.22/ex17.22/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ int main()
vector<PersonInfo> people;

string filename;
//cout << "Please input a record file name: ";
//cin >> filename;
//cout << endl;
ifstream fin(".//test.txt");
cout << "Please input a record file name: ";
cin >> filename;
cout << endl;
ifstream fin(filename);

if (fin.is_open())
{
Expand Down Expand Up @@ -128,4 +128,4 @@ void format_record(ostream& os, const string& phones, PersonInfo& people)
else //! otherwise, print the name and bad numbers
cerr << "input error: " << people.name
<< " invalid number(s) " << badNums.str() << endl;
}
}

0 comments on commit 9958a57

Please sign in to comment.