```c #include int main(int argc, char* argv[]) { // 创建文件类型 FILE* file; char buf[1024] = {0, }; // a 是追加,+ 文件不存在可以进行创建 file = fopen("1.txt", "a+"); // ... ...
分类:
编程语言 时间:
2019-12-31 10:54:23
阅读次数:
102
// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:
其他好文 时间:
2019-12-30 00:22:18
阅读次数:
61
在Http请求中,我们每天都在使用Content-type来指定不同格式的请求信息(MediaType,即是Internet Media Type,互联网媒体类型;也叫做MIME类型,在Http协议消息头中,使用Content-Type来表示具体请求中的媒体类型信息),但是却很少有人去全面了解con ...
分类:
Web程序 时间:
2019-12-29 18:24:42
阅读次数:
156
Part1:验证性实验 验证性实验2 正确 对比:二进制文件以二进制的方式存储,节省空间 文本文件解释格式为ASCLL编码,只能存储字符 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int ...
分类:
其他好文 时间:
2019-12-29 16:52:07
阅读次数:
76
#include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt", "r"); // 以只读文本方式打开文件file1.txt if (f ...
分类:
其他好文 时间:
2019-12-29 15:22:43
阅读次数:
86
#include<stdio.h> #include<stdlib.h> int main() { FILE *fp; char ch; fp=fopen("file1.dat","rb"); while(!feof(fp)) { ch=fgetc(fp); putchar(ch); } fclos ...
分类:
其他好文 时间:
2019-12-29 15:17:34
阅读次数:
120
1.1: // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file ...
分类:
其他好文 时间:
2019-12-28 23:11:10
阅读次数:
148
part1 ex1 更改后实验结果仍然正确 int main() { STU st, stmax, stmin; int i; FILE *fp; // 以只读文本方式打开文件file1.dat fp = fopen("file1.dat", "r"); if( !fp ) { // 如果打开失败, ...
分类:
其他好文 时间:
2019-12-28 11:27:35
阅读次数:
68
#include <iostream> #include <cmath> #include <cfloat> #include <cstdlib> #pragma warning(disable: 4996) #pragma warning(disable: 4305) #pragma warnin ...
分类:
编程语言 时间:
2019-12-27 23:20:51
阅读次数:
89
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-27 21:52:22
阅读次数:
63