Advertisement
CosmicFox33

kupil_muzhik_shlyapu_a_ona_emu_kak_raz

Jan 17th, 2022
903
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void input(circle *c);
  6. void output(circle *c);
  7.  
  8. struct point
  9. {
  10.     float x, y;
  11. };
  12.  
  13. struct circle
  14. {
  15.     point p;
  16.     float rad;
  17.     int color;
  18. };
  19.  
  20. void input(circle *c)
  21. {
  22.     cin >> c->p.x >> c->p.y >> c->rad >> c->color;
  23. }
  24. void output(circle *c)
  25. {
  26.     cout << c->p.x << " " << c->p.y << " " << c->rad << " " << c->color;
  27. }
  28.  
  29. int main()
  30. {
  31.     circle C;
  32.     input(&C);
  33.     output(&C);
  34.  
  35.     return 0;
  36. }
  37.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement