Ist der String ein Objekt oder einfach nur char array. Bei einem objekt gibt es methoden wie find. wieder visual C++:
Code:
CString bla;
bla="hier steht was da stehen soll";
int i=bla.find(0,"hier");
if(i!=-1) {
wasgefunden();
} dazu noch nen bissel text aus der msdn
Searches this string for the first match of a character or substring.
int Find( PCXSTR pszSub, int iStart=0 ) const throw(); int Find( XCHAR ch, int iStart=0 ) const throw(); Parameters pszSub A substring to search for.
iStart The index of the character in the string to begin the search with, or 0 to start from the beginning.
ch A single character to search for.
Return Value
The zero-based index of the first character in this
CStringT object that matches the requested substring or characters; -1 if the substring or character is not found.