Re: [問題] 如何將字串的某一個字元移到行首??

看板C_Sharp (C#)作者 (eric)時間20年前 (2005/07/14 01:24), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
※ 引述《kkkx (abula)》之銘言: : 例如.... : ____________________test : t____________________tes : st____________________te : ...以此類推 簡單來說就像個跑馬燈吧 : 謝謝...感激不盡m(_ _)m string testStr = "_______________test"; testStr = testStr.Substring(length-1) + testStr.Substring(0,length-1); @@~我是硬幹法則 XD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.138.30 ※ 編輯: Eric30 來自: 140.113.138.30 (07/14 01:25)
文章代碼(AID): #12rKv6Gb (C_Sharp)
文章代碼(AID): #12rKv6Gb (C_Sharp)