Skip to content

Commit

Permalink
Update ex1_20.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy committed Oct 20, 2015
1 parent 6b81c33 commit bc6436c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ch01/ex1_20.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#include <iostream>
#include "include/Sales_item.h"

using std::cin;
using std::cout;
using std::endl;

int main()
{
for (Sales_item item; std::cin >> item; std::cout << item << std::endl);
for (Sales_item item; cin >> item; cout << item << endl);
return 0;
}

0 comments on commit bc6436c

Please sign in to comment.