+ 3

how can i make my system accept two inputs in c plus plus: one at a time

It only gives me a chance for 1 input _ I used code blocks _ although I coded it this way: Int dribble; Int pass; Cout << "type of dribble skill \n"; Cin >> dribble; Cout << "type of pass \n"; cin >> pass;

1st May 2018, 10:55 PM
Wisdom Chibeze
Wisdom Chibeze - avatar
7 Answers
+ 3
Manoj Singh Oh ok, I'm not familiar with the Code Playground. You're probably right.
2nd May 2018, 1:00 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
What do you mean by 2 inputs at once? Two inputs in the same field?
1st May 2018, 11:16 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
you've to put multiple inputs with spaces like 123 456
2nd May 2018, 12:32 AM
Elliot
Elliot - avatar
+ 2
Oh..i get it now. I only need a space for my second input. Thanks pals..u've been helpful.
2nd May 2018, 5:48 PM
Wisdom Chibeze
Wisdom Chibeze - avatar
+ 1
Akib Reza That would simply assign the inputted value to 2 variables. I believe that he wants 2 inputs in one variable or something.
2nd May 2018, 12:49 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
Ben Allen (Njinx) He is little confused with solo learn's code playground because it doesn't show pop-up every time a input required it takes all inputs at once which separated by spaces.
2nd May 2018, 12:55 AM
Elliot
Elliot - avatar
0
I'm outta here.
2nd May 2018, 2:33 AM
Akib
Akib - avatar