多语言展示
当前在线:1066今日阅读:86今日分享:14

C 中exit如何用法

C  中exit如何用法
工具/原料

vc

方法/步骤
1

首先添加stdio.h

2

添加#include

3

然后添加main函数

4

然后添加printf('Start of the program....\n');

5

然后添加printf('Exiting the program....\n');   exit(0);

6

然后添加printf('End of the program....\n');   return(0);

7

运行程序看看运行结果

推荐信息