Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Hello, the idea is the following: You got a container with iterators (std::vector e.g.) and a second one you want to search for in the first one. Then you specify the begin of your search, its end and the begin of the sequence you want to look fo and its end. std::search will return an iterator towards the position of the first occurence. This might help you: http://www.cplusplus.com/reference/algorithm/search/?kw=search If you still go problems I will create some examples for you.
31st Jan 2017, 12:44 PM
~datell