0
When finished the program is executed. But After input something is closed only.... Could you explain the error?
2 Answers
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"
0
it will be good if can mention you code here so we can find bug easily