函数名: exit
功  能: 终止程序
用  法: void exit(int status);
程序例:
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>
int main(void)
{
   int status;
   printf("Enter either 1 or 2\n");
   status = getch();
   /* Sets DOS errorlevel  */
   exit(status - '0');
/* Note: this line is never reached */
   return 0;
}