Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //g++ 5.4.0
- #include <iostream>
- #include <vector>
- class Plane() {
- public:
- double x,y;
- int id;
- Plane(double x, double y, int id) {
- this->x = x;
- this->y = y;
- this->id = id;
- }
- }
- int main()
- {
- int n, id;
- double o, x, y;
- vector<Plane> planes;
- cin>>n>>o;
- for(int i = 0; i < n; i++) {
- cin>>id>>x>>y;
- planes.push_back(Plane(x,y,id));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement