當前位置:首頁 » 編程語言 » c語言刪除單詞

c語言刪除單詞

發布時間: 2023-07-27 20:25:11

1. c語言執行命令快捷鍵是什麼

1、重置配置的方法:

2. 求助C語言 刪除文本文件內的指定字元串

#include<stdio.h>
#include<string.h>

intmain(){
charinfilename[]="indata.txt";
charoutfilename[]="outdata.txt";
charstr[81];//假定每個文件名不超過80個字元
chars[81];
FILE*fin,*fout;
fin=fopen(infilename,"rt");
fout=fopen(outfilename,"wt");
if(fin==NULL||fout==NULL){
printf("不能打開文件。 ");
return1;
}
printf("待刪除的字元串:");
gets(str);
while(fgets(s,81,fin))
if(strcmp(str,s))fprintf(fout,"%s",s);
fclose(fin);
fclose(fout);
return0;
}

熱點內容
近親繁殖演算法 發布:2025-09-17 00:48:47 瀏覽:695
安卓如何關閉浮屏球 發布:2025-09-17 00:23:23 瀏覽:921
下列存儲器中存取周期最短的是 發布:2025-09-17 00:16:20 瀏覽:243
如何查詢域名用的伺服器地址 發布:2025-09-17 00:04:01 瀏覽:807
php過濾非中文 發布:2025-09-17 00:02:13 瀏覽:519
來源碼 發布:2025-09-16 23:57:00 瀏覽:858
yeah郵箱的伺服器地址 發布:2025-09-16 23:36:52 瀏覽:703
c的引用java 發布:2025-09-16 23:36:48 瀏覽:309
的n次方編程 發布:2025-09-16 23:25:34 瀏覽:287
python安卓版 發布:2025-09-16 23:01:04 瀏覽:825