如果是int main,就直接写return 0 如果是void main,就直接写return 或者写个goto也行 如果在子函数里,就写个exit(0)
使用函数exit(int),比如exit(0),表示结束程序,返回0值。
exit 0;