![]() |
23 HOURS WASTED! Due tonight need help
Hi there, I spent nearly two days worth of time trying to complete a program which is due 4/25 at midnight. The program asks the programmer to create a program that does the following:
* reads in 250 words from a text file into a class array with 250 storage space. *prompt the user for a word to search *display menu(1. find word via binary search, 2.find word via linear search, 3. Quit) *if selection is 1. do binary search, if word found output "found" and # of comparisons made. *if selection 2. do linear search ,if found display "found" and #of comparisons made *if not found, display, not found and number of comparisons made. -THE ISSUE IS THAT THE TEXT FILE IS NOT BEING READ INTO THE ARRAY PROPERLY SO THE SEARCHED DO RECORD #OF COMPARISONS OR FIND THE WORD SOUGHT. Code:
void crunch::linearsearch(char wordFind[]) // wordFind passed in from main |
Re: 23 HOURS WASTED! Due tonight need help
Please don't create the same thread more than once. Other thread deleted.
|
| All times are GMT +5.5. The time now is 01:53. |