Untitled
unknown
c_cpp
a year ago
300 B
3
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