string a = "ab#cd#ef"; string t = a.substr(a.find_last_of('#') + 1, a.length() - a.find_last_of('#'));
你好!int i=a.rfind("#");string t=a.substr(i);