Hello. Forgive me. I am using a external file such as lagan1.fasta (Escherichia coli) with demo program: find_exact.cpp. During the running of the program, the program NO PRINT occurrences of needle in the haystack. /// // the problem: NO PRINT the find position of my_needle within the my_haystack. // How to solve this problem? while (find(finder, pattern)) { ::std::cout << position(finder) << ","; } /// I am doing this, because it is my intention to measure the run time execution of Horspool algorithm, with different size of my_needle for this situation. Could you say me how to solve this problem. Thanks. Julio. |