How to console imput and store a line of numbers in c++? : There is a line full of a specific number (N) of numbers.
For example:
if N = 5 then the line can be:

0 1 5 3 4

How can I read in a line like that? If I store it in a string (string temp; cin >> temp;), it becomes '00' for some reason... Also, I need to put them into a number array. Can you help me please?