hi,
in a program, i currently have:
which will as ask for a line of input and will then search the line for the word hey surrounded by a space on each side.Code:string line, hey(" hey "); getline(cin, line); line.find(hey, 0);
so far the find function only searches once starting at the begining of the string. how can i modify it to keep finding more than one occurance of " hey " ?
thanks,
barneygumble742