0

When finished the program is executed. But After input something is closed only.... Could you explain the error?

25th Mar 2017, 1:17 AM
Jaky Mpezlocoyp
Jaky Mpezlocoyp - avatar
2 ответов
0
whenever you take String as input and then try to take number after that, the program will take the remaining Terminator or String as current input character and skip that input. to avoid that start using gets function or clear the cin buffer or use this pattern in scanf "%s\n"
25th Mar 2017, 5:57 AM
Keshave Jat
Keshave Jat - avatar
0
it will be good if can mention you code here so we can find bug easily
25th Mar 2017, 5:58 AM
Keshave Jat
Keshave Jat - avatar