int i;
int [,] Prices = new int [2, 7]{{1,2,3,4,5,6,7},{700,600,500,400,300,200,100}};
string[,] City = new string [2,1]{{"A"},{"B"}};
bool found = false;
for (i = 0; i <= City.Length -1; i++)
// for (y = 0; y <= City.Length - 1; y++)
{
if (LstDestinationCity.Text == City[i]) <<-- i get error here
{
IM刨做一个程序,如果我选择一个城市,我得到第一排在B市,我得到2排C#数组,字符串,错误
问题是什么? –
请具体化您的问题... – kapsi