I have a class associated with a linked list and would like to implement the binary_search algorithm. How?
thanks..Code:long s; cout<<"Enter item to serach"<<endl; cin>>s; for(iter2 = form2List.begin();iter2 != form2List.end(); iter2++) { binary_search(form2List.front(),form2List.end(),(*iter2).var1,s); }




Reply With Quote