Read a line of numbers

Hi, I am trying to make a program in which the user enters a number n, and then, a line of numbers.

i.e. -> 5
-> 1 4 7 6 2 0 9

is there any possibility to store this numbers in a vector? maybe using getline?

Thanks!
You should ask like this:
Hi, I made a program in which the user enters a number n, and then, a line of numbers.

i.e. -> 5
-> 1 4 7 6 2 0 9
Your code
is there any possibility to store this numbers in a vector? maybe using getline?

Thanks!
Chriscpp wrote:
is there any possibility to store this numbers in a vector? maybe using getline?


I'm calling this "hard-talking"

Aceix.
Topic archived. No new replies allowed.