C++高级语言程序设计 exit在什么库中

来源:百度知道 编辑:UC知道 时间:2024/05/30 06:32:24
请快快回复,等着救命啊!

exit()函数在stdlib.h头文件中,MSDN例程:
// crt_exit.c
// This program returns an exit code of 1. The
// error code could be tested in a batch file.

#include <stdlib.h>

int main( void )
{
exit( 1 );
}

如果你方便上网,你可以到微软程序员开发网MSDN上查找这类信息。

http://msdn2.microsoft.com/zh-cn/library/52cs05fz(VS.80).aspx