everyone, here is a function I wrote to read a user input which is a vector of double of unknown size, the input must terminate when \'enter\' is pressed:
vec