gets() or cin.getline() skipped input | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

gets() or cin.getline() skipped input

whenever I use gets or cin.getline the output screen skips it's input and go to next input...help needed urgently...

13th Dec 2016, 1:47 PM
Raythern Filix
Raythern Filix - avatar
3 Respuestas
0
It's working in code Playground enter all those inputs line by line
13th Dec 2016, 4:33 PM
Tejaswini Bandlamudi
Tejaswini Bandlamudi - avatar
0
but I want it in Dev c++
14th Dec 2016, 3:39 PM
Raythern Filix
Raythern Filix - avatar
0
we can use cin.ignore() before gets or cin.getline() to make it happen
30th Jan 2017, 3:50 PM
Raythern Filix
Raythern Filix - avatar