Below i have a peice of code that compares two strings.
if (long.find(short) != string::npos) {
cout << "FOUND";
}
This only tells me if it finds the short string in the long string. But how can i go about finding all the instances and tell the user where those instances of the string show?
I get the idea to maybe make this a loop but im having trouble implementing it.