/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ // still have problem running this program #if 1 #include #include #include #include #include using namespace std; #else #include #include #include #include #include #endif int main() { cout << "This program still have problem running on cint" << endl; cout << "Demonstrating generic find algorithm with " << "a deque." << endl; char * s = "C++ is a better C"; int len = strlen(s); cout << "instantiate deque" << endl; // deque1 initialization deque deque1(&s[0] , &s[len]); // deque::iterator where = find(deque1.begin(),deque1.end(), 'e'); assert(*where == 'e' && *(++where)=='t'); cout << *(--where) << *(++where) << endl; }