זה מה שבניתי עד כה: int count=0; char word,file; cout<<"enter filename"<<endl; cin>>file; cout<<"enter word"<<endl; cin>>word; ifstream makefile(file, ios::out); { if (!makefile) cout<<"Mentioned file could not be opened"<<endl; } if(strcmp(word,file)==0) ++count; cout<<count<<endl;
|
הצלחתי ליצור קובץ, ולקבל מילה לחיפוש ..
את פעולת החיפוש אני פשוט לא יודע לעשות :\
איך אני מחפש מילה בתוך קובץ טקסט ?
אשמח לעזרה פה, תודה
