SEARCHING

SEARCHING FUNCTION is used to find the query according to the NAME OF THE BOOK and NAME OF THE AUTHOR.
First all the information is copied from CP.txt to the array YASH [] by using COPYING () function.
For searching linear search is used. Linear search is a method for finding an element within a list. It sequentially checks each element of the list until a match is found or the whole list has been searched. In this case the loop will iterate until i<=top which is also can be considered as EOF (End Of File)
Each name and author are checked ,once a proper argument is found then the information Name of the book, Name of Author, Publication, No of pages and no. of copies are displayed.



Comments

Post a Comment

Popular posts from this blog

ORDER BY PART-2

GROUP BY