#include <iostream>
#include <string>
int main()
{
std::string a, b, c;
std::cin >> a >> b >> c;
a.replace(a.find(b), b.size(), c);
std::cout << "The altered string is " << a << std::endl;
return 0;
}
那個 C++ 程式沒有函數呢?:p
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>