请教exit(0)包含在什么头文件中?小弟我只写stdio.h,老是报错
请问exit(0)包含在什么头文件中?我只写stdio.h,老是报错
请问exit(0)包含在什么头文件中?我只写stdio.h,老是报错
谢谢先
------解决方案--------------------
#include <stdlib.h>
------解决方案--------------------
stdlib.h和process.h都行
------解决方案--------------------
Function Required Header Compatibility
exit <process.h> or <stdlib.h> ANSI, Win 95, Win NT
_exit <process.h> or <stdlib.h> Win 95, Win NT
------解决方案--------------------
exit, _exit
Terminate the calling process after cleanup (exit) or immediately (_exit).
void exit( int status );
void _exit( int status );
Function Required Header Compatibility
exit <process.h> or <stdlib.h> ANSI, Win 95, Win NT
_exit <process.h> or <stdlib.h> Win 95, Win NT
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version
请问exit(0)包含在什么头文件中?我只写stdio.h,老是报错
谢谢先
------解决方案--------------------
#include <stdlib.h>
------解决方案--------------------
stdlib.h和process.h都行
------解决方案--------------------
Function Required Header Compatibility
exit <process.h> or <stdlib.h> ANSI, Win 95, Win NT
_exit <process.h> or <stdlib.h> Win 95, Win NT
------解决方案--------------------
exit, _exit
Terminate the calling process after cleanup (exit) or immediately (_exit).
void exit( int status );
void _exit( int status );
Function Required Header Compatibility
exit <process.h> or <stdlib.h> ANSI, Win 95, Win NT
_exit <process.h> or <stdlib.h> Win 95, Win NT
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version