#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
int main() {
FILE* f = fopen("d:\\t.txt", "w");
if (NULL == f) {
perror("fopen");
return -1;
}
fputc('a', f);
fputc('b', f);
fputc('c', f);
fputc('d', f);
fseek(f, -3, SEEK_END);
fputc('g', f);
fclose(f);
f = NULL;
return 0;
}

被折叠的 条评论
为什么被折叠?



