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
运行程序看看运行结果
vc
首先添加stdio.h
添加#include
然后添加main函数
然后添加printf('Start of the program....\n');
然后添加printf('Exiting the program....\n'); exit(0);
然后添加printf('End of the program....\n'); return(0);
运行程序看看运行结果