Advertisement
Josif_tepe

Untitled

Sep 1st, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct point {
  5.     double x, y;
  6.     point(){ // empty constructor
  7.         x = 0;
  8.         y = 0;
  9.     }
  10. };
  11. int main() {
  12.     point p;
  13.     cout << p.x << " " << p.y << endl;
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement