Re: [問題] 誰能挑戰這程式?
※ 引述《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
11/03 20:46, 6F
噓
11/05 02:09, , 7F
11/05 02:09, 7F
討論串 (同標題文章)
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章