setCharAt()

描述

把字串中指定位置的字元設定成另一個字元。這不會影響字串的長度。

語法


string.setCharAt(index, c)

參數

string : String 物件 (字串)
index : 指定的字元位置
c : 另一個字元

回傳

無回傳值

See also

String
charAt()


語法參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.