cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Read a line of numbers
Read a line of numbers
Sep 13, 2013 at 5:04pm UTC
Nebur
(68)
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!
Sep 13, 2013 at 7:09pm UTC
Chriscpp
(368)
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!
Sep 13, 2013 at 7:20pm UTC
Aceix
(1118)
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.