mám:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Authentication;
using System.Data;
namespace CommandLineApp
{
class Program
{
protected string name;
protected string password;
void Main()
{
//Connect to Admin Server
string[] Name = {"Admin","Admin2","Admin3","Admin4","Admin5","Analitik","HeadAdmin","Graphic"}; //maxim: 99 peoples
string[] password = { "0xSS321Qui","8xPPES960is","","","","","" }; //maxim: 99 passwords
Console.WriteLine("Username:");
Console.ReadLine();
Console.WriteLine("Password:");
Console.ReadLine();
if (Name[0] == password[0])
{
Console.WriteLine("Command:");
}
else {
Console.WriteLine("This user cannot found.");
}
}
}
}
...ale jak vytvorit když zadám name "Admin" aby to porovnalo s potrebným heslem?...