c语言如何结束整个程序
如题,在C语言中用什么函数能结束整个程序
[解决办法]
函数名称: exit
函数原型: void exit(int state)
函数功能: 程序中止执行,返回调用过程
函数返回:
参数说明: state:0-正常中止,非0-非正常中止
所属文件: <stdlib.h>
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>
int main()
{
int status;
printf( "put a key\n ");
status=getch();
exit(0);
return 0;
}