當前位置:首頁 » 編程語言 » 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;
}

熱點內容
oraclesqloracle資料庫 發布:2025-07-13 17:19:04 瀏覽:218
磊科如何修改密碼 發布:2025-07-13 17:03:06 瀏覽:864
oracle資料庫類型 發布:2025-07-13 17:01:39 瀏覽:200
linuxeclipse安裝 發布:2025-07-13 16:44:56 瀏覽:176
內部伺服器做什麼用 發布:2025-07-13 16:43:54 瀏覽:118
toppython 發布:2025-07-13 16:34:05 瀏覽:906
安卓微信好友刪除怎麼找回來 發布:2025-07-13 16:28:10 瀏覽:125
華為微信自動存儲 發布:2025-07-13 16:26:45 瀏覽:197
svn外網不能訪問 發布:2025-07-13 16:26:33 瀏覽:724
易語言dll加密 發布:2025-07-13 16:17:50 瀏覽:808