討論串s.erase(remove(s.begin(),s.end(),'a'),s.end()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
./Playground/file0.cpp: In function 'void haha(std::string_view)':. ./Playground/file0.cpp:23:14: error: no matching function for call to. 'std::__cxx
(還有11518個字)
內容預覽:
). 大家猜猜看. s.erase(std::remove(s.begin(), s.end(), 'a'), s.end()). 這坨標題都塞不下的大便表達式幹了什麼?. 沒錯. 答案就是從 "s" 這個字串中把所有 'a' 這個字元消除掉. 當一個語言的標準庫需要一串標題都塞不下的表達式 才能做
(還有95個字)
首頁
上一頁
1
下一頁
尾頁