The search program is on
Page 694 from the book C++ Programming, volume two.
#include
#include
Main (){
Char searchname [15], itemneame[15], associateitem[14], filename[13];
Cout <<”ENTER THE DATA FILE NAME:”;
Cin >>filename;
Cout <Cin >> searchname;
Ifstream fin( filename );
While( fin >> itemname >>associateitem ){
If( strcmp( searchname, itemname ) ==0 ){
Cout <Return 0;
} // end of if
} // end of loop
Cout << “NAME NOT FOUND” <Return 0;
} // end of main