C++ replace()

1 개요[ | ]

C++ replace()
C++
Copy
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
  string s = "hello world";
  replace( s.begin(), s.end(), 'l', 'm');
  cout << s << endl;
  // hemmo wormd
}

2 같이 보기[ | ]

3 참고[ | ]