W3Schools Tryit Editor
[
フレーム
]
Run ❯
Get your
own
website
Go to Spaces
Ctrl+Alt+P
#include
#include
#include
using namespace std; bool has_o(string item) { return item.find('o') != string::npos; } int main() { vector
cars = {"Volvo", "BMW", "Ford", "Mazda"}; vector
newcars(4); replace_copy_if(cars.begin(), cars.end(), newcars.begin(), has_o, (string)"Toyota"); for (string car : newcars) { cout << car << "\n"; } return 0; }
Toyota
BMW
Toyota
Mazda
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル