| | |
find word, data in the file.(code only, collection)
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 8
Reputation:
Solved Threads: 1
I have some code to cout the line from file. and to use it to find word in the file.
[
ifstream bfile("test1.txt");
for(int i=0;i<=4;i++)
{bfile>> word[i];}
for(int i=0;i<=4;i++)
{line = line+ " " + word[i]; }
cout<< line<<endl;
]
after that use find word in string to find or edit in the the line, then take back to the file.
Any other idea to easy understand. I read some other thread, and their idea quite confuse i can't understand.
[
ifstream bfile("test1.txt");
for(int i=0;i<=4;i++)
{bfile>> word[i];}
for(int i=0;i<=4;i++)
{line = line+ " " + word[i]; }
cout<< line<<endl;
]
after that use find word in string to find or edit in the the line, then take back to the file.
Any other idea to easy understand. I read some other thread, and their idea quite confuse i can't understand.
Read my answer to another your thread on the same topic:
http://www.daniweb.com/forums/thread190507.html
Are you sure that the more threads the better chance to get right answer?
http://www.daniweb.com/forums/thread190507.html
Are you sure that the more threads the better chance to get right answer?
![]() |
Similar Threads
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- Cannot find server or DNS Error - please help! (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: plz help!
- Next Thread: calculate without repetaion of combination??
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg simple sorting string strings template text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






