疑惑~~~~求解
请问各位高人 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; }
[此贴子已经被作者于2004-12-06 09:36:31编辑过]