如何提取包含'ab'和&的单词'cd'在文本文件中? [英] How to extract words containing 'ab' & 'cd' in a text file?
本文介绍了如何提取包含'ab'和&的单词'cd'在文本文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以吗? ARMY1987-说什么?
解决方案
5月30日上午10:00,Umesh< fraternitydispo ... @ gmail.comwrote :
任何人都可以这样做吗? ARMY1987-怎么说?
请不要发布作业。
显示代码。
谢谢
>>>>"U == Umesh< fr **************** @ gmail.comwrites:
UCan有人这样做吗? ARMY1987-说什么?
如果你不得不问,很明显没有人可以做到,但是因为我可以做b
$ b我知道有人可以。
也许你应该尝试一下,看看你想出了什么。
Charlton
-
Charlton Wilbur
cw*****@chromatico.net
" Umesh" < fr **************** @ gmail.comha scritto nel messaggio
news:11 ************* *********@r19g2000prf.googlegr oups.com ...
任何人都可以这样做吗? ARMY1987-怎么说?
什么?为什么*我*应该这样做?
打开文件后等等......
while(读取一句话)
if(单词包含ab&& the word contains" cd")
写下这个词;
关闭文件等等...
查找fscanf()和strstr()的%s格式。
Can anyone do it? ARMY1987- what say?
解决方案
On May 30, 10:00 am, Umesh <fraternitydispo...@gmail.comwrote:Can anyone do it? ARMY1987- what say?Please do not post homework.
Show the code.
thanks
>>>>"U" == Umesh <fr****************@gmail.comwrites:
UCan anyone do it? ARMY1987- what say?
If you have to ask, it''s obvious that not anyone can do it, but as I
can do it, I know someone can.
Perhaps you should attempt it and see what you come up with.
Charlton
--
Charlton Wilbur
cw*****@chromatico.net
"Umesh" <fr****************@gmail.comha scritto nel messaggio
news:11**********************@r19g2000prf.googlegr oups.com...Can anyone do it? ARMY1987- what say?
What? Why am *I* supposed to do that?
After having opened the files, etc., etc...
while (read a word)
if (the word contains "ab" && the word contains "cd")
write the word;
close the files, etc., etc...
Look up for the %s format for fscanf(), and for strstr().
这篇关于如何提取包含'ab'和&的单词'cd'在文本文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文