From bc6436c3da44f12394a1c4ff603634c2229f280a Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Wed, 21 Oct 2015 11:33:04 +1300 Subject: [PATCH] Update ex1_20.cpp --- ch01/ex1_20.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ch01/ex1_20.cpp b/ch01/ex1_20.cpp index 72d43dda..2dadf85a 100644 --- a/ch01/ex1_20.cpp +++ b/ch01/ex1_20.cpp @@ -1,8 +1,12 @@ #include #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; }