This question has already been answered:
Good evening. Tell me why this code:
while (!file.eof()) { file >> p1.x >> p1.y; MyVector.push_back(p1); cout << p1.x << " " << p1.y<<endl; } With this information in the file:
0 0 0 10 10 10 10 0 Displays the following:
0 0 0 10 10 10 10 0 10 0 and accordingly the size of the vector will be equal to 5?
PS need to get around this moment