#include #include #include #include #include using namespace std; //myAlgo_find_if1.cpp int Compare(int); int main() { //ostream_iterator< int > output( cout, " " ); int n1[] = { 69 ,60,63,61,65,64,71,70,68,64 }; vector< int > Vint1( n1, n1+10 ); cout << "\n-ostream_iterator output ----"; //copy( Vint1.begin(), Vint1.end(), output ); vector::iterator it; cout << "\n-->find_if operation -------"; cout<<"\n---find_if(Vint1.begin()+0,--\t"; it =find_if(Vint1.begin()+0, Vint1.end(),Compare); cout<<" : "<< *it ; cout<<"\n---find_if(Vint1.begin()+1,--"; it =find_if(Vint1.begin()+1, Vint1.end(),Compare); cout<<" : "<< *it << endl; cout<<"\n--iteration:find_if-/-final pos is 65--\n"; for(int i= 0; i < 10; i++) { it =find_if(Vint1.begin()+i, Vint1.end(),Compare); cout<<" : "<< *it; } cout<