0
namespace if4
{
class Program
{
static void Main(string[] args)
{
string username;
int password = new int();
string userValue;
userValue = Console.ReadLine();
Console.WriteLine("Enter your username:");
userValue = Console.ReadLine();
Console.WriteLine("Enter your password: ");
if (username == "code" && password == "55555")
{
Console.WriteLine("Access allowed! ");
Console.ReadLine();
}
else
{
Console.WriteLine("Access denied! ");
}
Console.ReadLine();
}
}
}
這是什麼語言? C#? – 2015-04-05 13:52:43