Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by heyrey

  1. heyrey

    Search Function

    Thanks for all your help and responding so quickly. I was able to get the program to work fine by reducing the (i <= 3) to (i<=2) and keeping my MAX Length at 3 . The program will cerr any message I want if the user goes over the number of searches I have set.
  2. heyrey

    Search Function

    Actually I did use index[i] between clients and fName, lName, and exten but when I posted the message it removed it from my code.
  3. heyrey

    Search Function

    My struct members are strings. Actually I got it to work by changing the quotes around the delimiters from double quotes to single quotes. Now I get an error stating &quot;the istructions at &quot;0x00405640&quot; referenced memory at &quot;0x0044ec8d&quot;.&quot; The memory could not be...
  4. heyrey

    Search Function

    Well, I have tried the code above and I still cannot get my search function to retrieve data. Here it is can anyone give me any suggetions? This is actually the last part of my struct. void search() { //declare variables phoneBook clients[3]; string search = &quot; &quot;; {...
  5. heyrey

    Search Function

    I see what you mean about the operators. I do not see in the code where you prompt the user to enter the information, so they can get what they are looking for from the file
  6. heyrey

    Search Function

    Will this code return random names from my file? Example: cout <<&quot;Please enter name of person's information you want: &quot;; cin << ssearch; cout <<&quot;That person's telephone extension is &quot; << sextension << endl; Rey
  7. heyrey

    Search Function

    Thanks, I will give it a try. I am new to this so I hope it works.
  8. heyrey

    Search Function

    I wrote a program in C++ to enter First Name, Last Name and Telephone Extension into a file. How do I write the code to search for a specific name and return the information? I have not beeb able to found a codes that gives me that example. Can anyone please help!! Rey

Part and Inventory Search

Back
Top