I have the next problem:
Entering coordinates of points on a plain with keyboard (as rows x,y). Replacing coordinates in vector (point - structure data type). Than calculating distance from the first point to all another points.
If you have your structure points, the easiest and most common way is to create an instance of the struct, and then use push_back to add it to the vector, e.g.:
Ah, adding the 'f' at the end of a number just says that it is a floating point number, rather than a double. Doesn't really make a difference, just makes things clearer for me when I'm dealing with floats rather than doubles.