2020年11月2日

摘要: 读写文件操作与普通的printf、scanf 代码操作平台功能 printf 屏幕 标准输出 scanf 键盘 标准输入 perror 屏幕 标准输出错误 系统文件 功能代码宏定义 标准输入 stdin 0 标准输出 stdout 1 标准错误 stderr 2 系统文件在应用程序执行时会自动打开, 阅读全文
posted @ 2020-11-02 19:42 Sna1lGo 阅读(207) 评论(0) 推荐(0) 编辑
 
摘要: //文件版的四则运算 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> //进行文件四则运算的写入 void write_file() { FILE* fp = NULL; 阅读全文
posted @ 2020-11-02 19:06 Sna1lGo 阅读(933) 评论(0) 推荐(0) 编辑
 
摘要: 1 //按行读写文件 2 #define _CRT_SECURE_NO_WARNINGS 3 #include<stdio.h> 4 #include<stdlib.h> 5 #include<string.h> 6 7 //获取键盘输入,写入文件 8 void Get_stdin_Write_Fi 阅读全文
posted @ 2020-11-02 19:03 Sna1lGo 阅读(2701) 评论(0) 推荐(0) 编辑
 
摘要: 1 //文件的打开和关闭 2 #define _CRT_SECURE_NO_WARNINGS 3 #include<stdio.h> 4 #include<stdlib.h> 5 #include<string.h> 6 int Only_Read_file(FILE* fp) 7 { 8 //以只 阅读全文
posted @ 2020-11-02 18:59 Sna1lGo 阅读(420) 评论(0) 推荐(0) 编辑
 
摘要: //c++实现雅克比迭代式 #include<iostream> #include<iomanip> #include<string> #include<vector> using namespace std; //函数求数组中的最大值 double MaxOfList(vector<double> 阅读全文
posted @ 2020-11-02 18:57 Sna1lGo 阅读(1036) 评论(0) 推荐(0) 编辑
 
摘要: 采用的是vs2019IDE来处理 1 //按字符读写文件 2 3 #define _CRT_SECURE_NO_WARNINGS 4 #include<stdio.h> 5 #include<stdlib.h> 6 #include<string.h> 7 //按单个字符写文件 8 int Writ 阅读全文
posted @ 2020-11-02 18:56 Sna1lGo 阅读(388) 评论(0) 推荐(0) 编辑