Advertisement
Guest User

Untitled

a guest
Jun 10th, 2010
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <iostream>
  2. using std::cout;
  3. using std::cin;
  4. using std::endl;
  5.  
  6. #include "Point.h"
  7.  
  8. int main()
  9. {
  10.     Point point; // create a new object point
  11.  
  12.     cout << "Enter a point coordinate in the form (1,1):" << endl;
  13.  
  14.     // cin >> point invokes operator>> by implicitly issuing
  15.     // the global function call operator>>( cin, point )
  16.     cin >> point;
  17.  
  18.     cout << "The point coordinate entered was: ";
  19.  
  20.     // cout << point invokes operator<< by implicitly issuing
  21.     // the global function call operator<<( cout, point )
  22.     cout << point << endl;
  23.  
  24.     system("pause");
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement