Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //g++ 5.4.0
  2.  
  3. #include <iostream>
  4. #include <vector>
  5.  
  6. class Plane() {
  7. public:
  8. double x,y;
  9. int id;
  10. Plane(double x, double y, int id) {
  11. this->x = x;
  12. this->y = y;
  13. this->id = id;
  14. }
  15. }
  16.  
  17.  
  18. int main()
  19. {
  20. int n, id;
  21. double o, x, y;
  22. vector<Plane> planes;
  23. cin>>n>>o;
  24. for(int i = 0; i < n; i++) {
  25. cin>>id>>x>>y;
  26. planes.push_back(Plane(x,y,id));
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement