嗨,我想制作一个登录屏幕,用户将在其中输入用户名和密码。但是如何使用数组验证它?请帮忙谢谢
int[] username = { 807301, 992032, 123144 ,123432};
string[] password = {"Miami", "LosAngeles" ,"NewYork" ,"Dallas"};
if (username[0].ToString() == password[0])
{
MessageBox.Show("equal");
}
else
{
MessageBox.Show("not equal");
}