... 子字串的最後一個出現處,也就是最右邊的出現處: string river("Mississippi"); auto first_pos = river.find("is"); //回傳 1 auto last_pos = river.rfind("is"); ...
確定! 回上一頁