#include #include using namespace std; int main(){ string s=" ***Tere*** "; cout << s.find_first_of("*") << " " << s.find_last_of("*") << " " << s.find_first_not_of("* ") << " " << s.find_last_not_of("* ") << endl; } /* D:\kodu\0309\oma>a 3 12 6 9 */