看板 C_Sharp 關於我們 聯絡資訊
※ 引述《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
FantasyRyu:啊星號哩 11/03 00:05
tmxcrows:這好久以前的文章了... 11/03 00:30
evernever: 啊星號哩 11/03 08:12
megaman1206: 星號哩 11/03 12:47
kyoin:... 11/03 16:57
petrushka:要使用 Console.ReadKey(true) 去處理 11/03 20:46
yes302:這是初學者題目吧? 11/05 02:09