Advertisement
Josif_tepe

Untitled

Mar 26th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Point {
  6.     int x, y;
  7. public:
  8.     Point(int _x, int _y) {
  9.         x = _x;
  10.         y = _y;
  11.     }
  12. };
  13. int main() {
  14.     Point p(1, 2);
  15.    
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement