C++ Programming Ch.11 Exercise 11 Solution
Problem: 다음은 프로그램과 Execution Result를 보여준다. pos 조작자를 작성하라. 1 2 3 4 5 6 7 8 9 #include using namespace std; int main() { int x, y; cin >> pos >> x; cin >> pos >> y; cout << x << ',' << y << endl; } Execution Result: Objective & Hints: 조작자 작성 연습 Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include using namespace std; istream& pos (istream& ins) { // pos 조작자 cout << "위치는? "; return ins; } int main() { int x, y; cin >> pos >> x; cin >> pos >> y; cout << x << ',' << y << endl; } ]( ...