using System;
class validate { public static void Main() { string str_wrench="ilovemyfamily"; string str_next=""; Console.WriteLine ("請(qǐng)輸入你的姓名:"); Console.ReadLine (); do { Console.WriteLine ("請(qǐng)輸入你的密碼:"); string str_passwd=Console.ReadLine (); if(str_passwd!=str_wrench) { Console.WriteLine ("密碼不正確,是否繼續(xù)?Y/N"); } str_next=Console.ReadLine (); }while(str_next=="y"||str_next=="Y"); } } |
|