傳統c字串使用'\0'作為結束字元,而c++字串string不使用這種方式來處理字串 c++字串 ... 若字串為常數字串,可使用string::const_iterator,和常數特性一樣不能做為修改
確定! 回上一頁