strlen、strcpy、strcat、strcmp 等標準庫函數(<cstring>)。String 類為例封裝上述函數,展示深拷貝、運算子多載。string.h/cstring),非 C++ 專有。std::string(<string>),提供 size()、operator+=、compare() 等更安全、物件導向的介面。建議並行閱讀《C++ Primer》(非 Plus)第 3 章 std::string,建立現代 C++ 字串觀念。