Skip to content

Commit

Permalink
Update ex3_2a.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy committed Jun 20, 2015
1 parent 9a8d512 commit d50152a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ch03/ex3_2a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ using std::getline;

int main()
{
string input;
while (getline(cin, input))
cout << input << endl;

return 0;
for (string str; getline(cin, str); cout << str << endl);
return 0;
}

0 comments on commit d50152a

Please sign in to comment.