If we want to replace a certain part of a string by another string, we can use replace(): QString str = "a cloudy day"; str.replace(2, 6, "sunny"); ...
確定! 回上一頁