22.c语言各种输入输出与错误处理
来源:互联网 发布:丑老太婆网络照片 编辑:程序博客网 时间:2024/06/05 15:38
1.errno
2.strerror(errno)
3.perror()
向标准错误输出信息:
#include <stdio.h>int main (){ FILE *fp; fp = fopen("file.txt", "r"); if( fp == NULL ) { perror("Error: "); return(-1); } fclose(fp); return(0);}
4.printf()
5.fprintf()
6.sprintf()
fgetc(), fgets()fputc(), fputs()getchar(),putchar(),ferror(), feof(), clearerr()
http://www.yiibai.com/c_standard_library/c_function_perror.html
http://www.360doc.com/content/12/1226/19/9305922_256429771.shtml
http://blog.csdn.net/fareast8612/article/details/6848699
http://www.yiibai.com/c_standard_library/c_function_fprintf.html
阅读全文
0 0
- 22.c语言各种输入输出与错误处理
- C语言错误处理
- C语言错误处理
- C语言错误处理
- C语言错误处理
- 输入输出原理与C语言标准输入输出函数
- c语言输入输出函数printf与scanf
- C语言数据存储与输入输出
- C语言传统的错误处理方式setjmp与longjmp
- Linux C语言错误处理
- Linux C语言错误处理
- C语言错误处理技巧
- C语言错误处理方法
- C语言中的错误处理
- C语言的错误处理
- c 语言的错误处理
- C语言错误处理策略
- C语言中的错误处理
- 51nod 1043 幸运号码 (数位dp)
- 如何写一个简单的ping程序
- json格式
- 中医医院医生微信预约系统使用教程
- 6-7 简单计算器
- 22.c语言各种输入输出与错误处理
- 数据结构之线性表(建表-插入-删除-合并)
- Importing the multiarray numpy extension module failed
- CSS 选择器权重计算规则
- Codeforces 849 B. Tell Your World(计算几何)
- C语言(在linex系统操作)通讯录
- C#笔记(2)md5加密
- 【python爬虫03】使用Scrapy框架模拟登录知乎
- 6-8 统计一行文本的单词个数