/* * rmtag.cpp * * Patrick Simianer * 2015-06 */ #include #include using namespace std; int main(int argc, char const* argv[]) { string s = " b "; cout << s << endl; cout << s.find_first_of(">") << endl; cout << s.find_last_of("<") << endl; cout << s.substr(s.find_first_of(">")+1, s.find_last_of("<")-3) << endl; return 0; }