#include using namespace std; #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //function string * split(string a1, string t1); int main(int argc, char** argv) { //1.C++ 字串 成員函式 string a1 = "cpp is easy to learn, cpp is great."; string * a2 = new string("cpp is easy to learn, cpp is great."); //(1)目的:把cpp取代成javascript //方法:迴圈內,使用 find(),傳回位置,然後replace該位置,該舊文字長度,換成新文字, // cout<