Re: [問題] 誰能挑戰這程式?

看板C_Sharp (C#)作者時間15年前 (2009/11/02 22:40), 編輯推噓0(115)
留言7則, 7人參與, 最新討論串20/20 (看更多)
※ 引述《heliosy (這一欄是要做啥用的NI》之銘言: : ※ 引述《tomex (tomex)》之銘言: : : 很簡單的需求,就是在console裏讓user打密碼,再秀出來: : : Input a password: *** : : Your password is: abc : : 不過細想下,卻又覺得很難寫喔... : : 挑戰一下吧! : : 問倒很多人了... using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string password; Console.Write("input your password:"); password=Console.ReadLine(); Console.Write("your password is:{0}", password); Console.Read(); } } } 這樣對嗎? 簡單扼要 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.33.148.219

11/03 00:05, , 1F
啊星號哩
11/03 00:05, 1F

11/03 00:30, , 2F
這好久以前的文章了...
11/03 00:30, 2F

11/03 08:12, , 3F
啊星號哩
11/03 08:12, 3F

11/03 12:47, , 4F
星號哩
11/03 12:47, 4F

11/03 16:57, , 5F
...
11/03 16:57, 5F

11/03 20:46, , 6F
要使用 Console.ReadKey(true) 去處理
11/03 20:46, 6F

11/05 02:09, , 7F
這是初學者題目吧?
11/05 02:09, 7F
文章代碼(AID): #1Axkzt7r (C_Sharp)
討論串 (同標題文章)
文章代碼(AID): #1Axkzt7r (C_Sharp)