Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- #include "Point.h"
- int main()
- {
- Point point; // create a new object point
- cout << "Enter a point coordinate in the form (1,1):" << endl;
- // cin >> point invokes operator>> by implicitly issuing
- // the global function call operator>>( cin, point )
- cin >> point;
- cout << "The point coordinate entered was: ";
- // cout << point invokes operator<< by implicitly issuing
- // the global function call operator<<( cout, point )
- cout << point << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement