C# 错误:可执行文件窗口未出现且没有错误
出现了一个错误,不仅执行窗口没有出现,而且错误窗口中什么也没有出现。我通过注释寻找原因。相等函数出错了,我不知道为什么C# 错误:可执行文件窗口未出现且没有错误,c#,winforms,C#,Winforms,出现了一个错误,不仅执行窗口没有出现,而且错误窗口中什么也没有出现。我通过注释寻找原因。相等函数出错了,我不知道为什么 for (int i = 0; i < 3; i++) { do { randQuestion = r.Next(0, 5); } while (equal(beforeQ, randQues
for (int i = 0; i < 3; i++)
{
do
{
randQuestion = r.Next(0, 5);
}
while (equal(beforeQ, randQuestion));
randQuestion = r.Next(0, 5);
for (int j = 1; j < 5; j++)
{
do
{
randBogi = r.Next(1, 5);
}
while (equal(beforeB, randBogi));
beforeB[j - 1] = randBogi;
R_Question[i, j] = Question[randQuestion, randBogi];
}
}
bool equal(int[] before, int rand)
{
for (int k = 0; k < before.Length ; k++)
{
if (before[k].Equals(rand))
{
return true;
}
}
return false;
}
for(int i=0;i<3;i++)
{
做
{
randQuestion=r.Next(0,5);
}
while(equal(beforeQ,randQuestion));
randQuestion=r.Next(0,5);
对于(int j=1;j<5;j++)
{
做
{
randBogi=r.Next(1,5);
}
while(相等(之前,randBogi));
beforeB[j-1]=randBogi;
R_问题[i,j]=问题[randQuestion,randBogi];
}
}
布尔相等(整数[]之前,整数兰德)
{
for(int k=0;k
use before[k]==randk