C#實現跑馬燈效果

namespace test { class Test6 { static void Main(string[] args) { string str = "welcome to xfht"; //獲取字符串str的長度 int length = str.Length; //獲取控制檯窗口的寬度 int width=Console.WindowWidth; //在字符串前添加width-lengt
相關文章
相關標籤/搜索