Indefinite User Input Loop

Dec 13, 2014 at 1:14am
In short, I'm trying to make a CLI for a project that can take multiple user inputs add I don't exactly know what I'm doing. I'm able to get cin to take one user input, but that's all I'm sure about.
Dec 13, 2014 at 2:11am
Whats the problem to be solved? If you dont make yourself clear we cant help you
Dec 13, 2014 at 3:07am
I just don't know exactly how to implement them and I need all the advice I can get. I know I'm not being very helpful but tutorials for this kind of stuff are hard to come by and I never learned this in school.
Dec 13, 2014 at 7:40am
Well, you are too generic... What is the input like? More values on the same line, like

1 2 3 a b c

or more values typed one after the other, like

1 [enter] 2 [enter] ...

or something different?

Please provide as many details as you can. Maybe an example of what you expect from the program...
Dec 13, 2014 at 8:14pm
It's the latter.
Dec 13, 2014 at 8:23pm
Ok, and what problem do you encounter?
Doesn't

1
2
3
4
5
cout << [question]
cin >> [answer]
cout << [question]
cin >> [answer]
...


work?
Dec 13, 2014 at 11:22pm
I'll tell you whether or not that works after I solve another problem. I've been using IDEone and it seems troublesome when it comes to I/O.
Dec 14, 2014 at 8:06am
You should definitely move to a real IDE! For example you can try Code::Blocks or, if you are on Linux, you can just use the terminal.
Dec 14, 2014 at 3:04pm
Oh I use proper IDEs. I was just using IDEone for unit testing and developing coding conventions.
Topic archived. No new replies allowed.