討論串s.erase(remove(s.begin(),s.end(),'a'),s.end()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 5→)留言6則,0人參與, 1年前最新作者lturtsamuel (謹言慎行 拼relocate)時間1年前 (2024/01/08 15:01), 編輯資訊
0
0
0
內容預覽:
./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個字)

推噓2(2推 0噓 5→)留言7則,0人參與, 1年前最新作者lturtsamuel (謹言慎行 拼relocate)時間1年前 (2024/01/08 14:31), 編輯資訊
0
0
0
內容預覽:
). 大家猜猜看. s.erase(std::remove(s.begin(), s.end(), 'a'), s.end()). 這坨標題都塞不下的大便表達式幹了什麼?. 沒錯. 答案就是從 "s" 這個字串中把所有 'a' 這個字元消除掉. 當一個語言的標準庫需要一串標題都塞不下的表達式 才能做
(還有95個字)
首頁
上一頁
1
下一頁
尾頁