Spaced input in cpp

My issue

How do i take spaced input of variable length, For example if i have a spaced input of list of strings ,how do i store them in an array or a vector without knowing the size in c plus plus.