0
why it make dead circle when i input other characters to "n"?
i make a code input different data into a file but i make dead circlr if i input "a " at first https://code.sololearn.com/c7sBQz5SH234/?ref=app
2 Respostas
+ 4
cin>>n doesn't set n if there isn't a number typed. Try validating number like I did in here
https://code.sololearn.com/cF7iOkU73BYy/?ref=app
0
thanks a lot