std::string::size_type n;//ist der indextyp für string, unsigned int würds auch tun, das hier ist aber portabler
std::string str("mein**kleines*beispiel");
n = str.find_first_of("*");
if(n != std::string::npos && str[n+1]=='*')
{
cout << str.substring(0,n);
} |