C++, when I put return 0 in a function and use the function main, the system still keep working
My idea is to write a exit function to terminate the whole system, so I wrote the function int exit_c(), and put it in the while loop, but it seems that the system keeps working. int main() { while (true) { exit_c(); } system("pause"); return 0; } int exit_c() { cout << "close" << endl;… Read More C++, when I put return 0 in a function and use the function main, the system still keep working