C 中exit如何用法

时间:2026-02-15 00:30:33

1、首先添加stdio.h

C  中exit如何用法

2、添加#include <stdlib.h>

C  中exit如何用法

3、然后添加main函数

C  中exit如何用法

4、然后添加printf("Start of the program....\n");

C  中exit如何用法

5、然后添加

printf("Exiting the program....\n");

   exit(0);

C  中exit如何用法

6、然后添加

printf("End of the program....\n");

   return(0);

C  中exit如何用法

7、运行程序看看运行结果

C  中exit如何用法

© 2026 乐乐经验网
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com