[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | | if (it == end) { | | std::cout << c << " not found" << std::endl; | | } else { | | std::cout << c << " found at pos " | | << it - begin << std::endl;
since we are at it, this should be written as: << std::distance(begin, it) << std::endl; -- Lgb