I had some luck with
Code:
if(name.find_first_of(books[i].Author)== 0)
output:
Enter file name with the extension: c:\library.txt
14 records loaded successfully.
Enter Q to (Q)uit, Search (A)uthor, Search (T)itle, (S)how All:
A
Authors Name: Malik
C++ Programming: From Problem Analysis... (Malik)
Beginning LINUX Programming (Stones and Matthew)
C++ Programming: Program Design Including... (D. S. Malik)
Enter Q to (Q)uit, Search (A)uthor, Search (T)itle, (S)how All:
but as you can see it picked up a record i didnt not ask for..