Is there a line of code that will terminate the program?
Something like python\'s sys.exit()?
sys.exit()
#include <cstdlib> ... /*wherever you want it to end, e.g. in an if-statement:*/ if (T == 0) { exit(0); }