有时候需要从文件中读入数据,但是,为字符数组赋值时,可能会出现一些意想不到的后果。
希望这个程序对你有帮助!
源代码:
#include<stdio.h>
#include<time.h>
//本程序读入文件,将文件中的','替换为' ',然后保存为另一文件
//#define src_name "in.txt"
//#define dst_name "out.txt"
int main()
{
char src_name[100],dst_name[100];
FILE *ifp, *ofp;
int ch;
long begin,end;
printf("please en
相关下载链接:
//download.csdn.net/download/ldhshao/812678?utm_source=bbsseo