2012-11-10 66 views

回答

1

你有什麼樣的問題?

#include <boost/circular_buffer.hpp> 
#include <boost/algorithm/searching/knuth_morris_pratt.hpp> 
#include <string> 

int main (int, char **) { 
    boost::circular_buffer<char> cb; 
    std::string s; 
    boost::algorithm::knuth_morris_pratt_search (cb.begin(), cb.end(), s.begin(), s.end()); 
} 
相關問題