+ 1
Find Error
Run code only on cppdroid plz[install from play store] https://code.sololearn.com/cMkeUI808ldo/?ref=app
4 Respuestas
+ 3
Just #include <stdlib.h> and use exit(0); anywhere you want to exit the program
+ 1
Found this: https://stackoverflow.com/questions/14274225/statement-goto-can-not-cross-variable-definition
I wouldn't use goto for this purpose, there are much better and cleaner ways to exit the program:
http://www.cplusplus.com/reference/cstdlib/exit/
0
not able to understand..Can u give an example for better ways to exit in this program!!?
0
thx..Will test if it works