2013年9月9日

c语言return与exit的区别

摘要: 2013-09-0918:54:33exit函数在头文件stdlib.h中,函数原型: void exit(int status); exit(0) 正常运行程序并退出程序。 exit(1) 非正常运行导致退出程序。 return() 返回函数,若在main主函数中,则会退出函数并返回一值,可... 阅读全文

posted @ 2013-09-09 19:15 EastJason 阅读(273) 评论(0) 推荐(0) 编辑

c语言system()介绍

摘要: 2013-09-0916:06:021. 头文件:#include 2. 定义函数:int system(const char * string);3. 函数说明:system()会调用fork()产生子进程,由子进程来调用/bin/sh -c string来执行参数string字符串所代表的命令,... 阅读全文

posted @ 2013-09-09 16:11 EastJason 阅读(825) 评论(0) 推荐(0) 编辑

c语言open()介绍

摘要: 2013-09-0914:40:131. 头文件:#include #include #include 2. 定义函数:int open(const char * pathname, int flags);int open(const char * pathname, int fla... 阅读全文

posted @ 2013-09-09 15:20 EastJason 阅读(9378) 评论(0) 推荐(1) 编辑

导航