fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. struct Point { int x, y;
  8. Point():x(5),y(6){};
  9. };
  10.  
  11.  
  12. struct Reach
  13. {
  14. unsigned short az;
  15.  
  16. Point location;
  17.  
  18. float block;
  19.  
  20. Reach(unsigned short _az = 0,
  21. Point _point = Point(),
  22. float _block = 3.4f)
  23. : az(_az)
  24. , location(_point)
  25. , block(_block)
  26. {}
  27. };
  28.  
  29. struct One
  30. {
  31. unsigned short number;
  32.  
  33. Reach point[50];
  34.  
  35. bool isMin;
  36.  
  37. One(unsigned short _number = 0,
  38. bool _isMin = false)
  39. : number(_number)
  40. , point()
  41. , isMin(_isMin)
  42. {}
  43. };
  44.  
  45. int main()
  46. {
  47.  
  48. One o;
  49. for(auto p: o.point)
  50. cout << p.location.x << " " << p.location.y << " " << p.block << endl;
  51.  
  52.  
  53. }
  54.  
  55.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4
5 6  3.4