+ 2

What to do when you have multiple inputs ?

I need proper information about students in the code.. so basically I have multiple inputs such as roll no,name,marks etc . but when I run it show only one input in front of the display when we run the code... is there any way to get one by one inputs . such as we have in. html( sleep 4000 ) is there any way to find ans of my problem if you like my question then upvote it.

2nd Jan 2018, 2:01 PM
Yesh Jadav
Yesh Jadav - avatar
3 odpowiedzi
+ 10
Code Playground does not provide a live console. All input has to be fed to the compiler prior to code compilation. You can provide multiple inputs by splitting your input into different lines. E.g. std::cin >> x; std::cin >> y; Input: 1 2
2nd Jan 2018, 2:29 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
johit I am giving my code can you make it bcoz it gives me error
2nd Jan 2018, 2:28 PM
Yesh Jadav
Yesh Jadav - avatar
+ 1
hatsy I required real time counter in my code https://code.sololearn.com/coVtISfFpjX0/?ref=app
2nd Jan 2018, 2:44 PM
Yesh Jadav
Yesh Jadav - avatar