if (Deck[0] //All I gotta know is if this has nothing in it. Speficially "")
{
Console.WriteLine("Wow im really good at this.");
}
else
{
Console.WriteLine("Aw jees rick");
}
所以现在Deck [0]中有“2个心”,如果有办法检查并查看“”是否是完美的值。这里的想法是“2心”将在显示后删除,所以我可以确保我不显示它两次,所以我想我会把它弄空并检查索引是否为空,这是证明比我想象的更困难。
答案 0 :(得分:-2)
试试吧:
if (Deck.Length == 0)
{
//empty array
}