c++
ok, this is programing help, but afaik we don't have a programing section
I am stuck on a particular function of a program I am working on.
"void searchRecords()
This void function should prompt the user for search text, then open C:\PhoneBook.txt for input, read all records in the file,
and display all lines that contain the search text. Display a count of the records that matched the search text. Display a
different message if zero, one, or more matches are found."
an example line in phonebook.txt would be
allen 407566432
any ideas? I know I need to use string.find function to do it, just not sure how.
__________________
Quote:
|
Originally Posted by Marcus Aurelius
Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.
|


|