title: Index of nth Occurrence of the string
body: <p>How do I find the index of nth occurrence of the given string in a line? I need this to take a substring from that index. Is that possible through any functions in c++?</p>