Untitled
unknown
c_cpp
2 years ago
300 B
6
Indexable
#include <fstream>
#include <vector>
using namespace std;
struct point {
float x;
float y;
};
int main() {
point poin;
ifstream in("input.txt");
int n;
in >> n;
vector<point> points(n);
for (int i = 0; i < n; i++) {
in >> points[i].x >> points[i].y;
}
in.close();
}Editor is loading...
Leave a Comment