主题:在方法中调用数组参数出错?
string[] dis = {"$200-$299","$300-$399","$400-$499","$500-$599","$600-$699","$700-$799","$800-$899","$900-$999",">=$1000"};
int[] all = new int[8];
int[] inp = new int[8];
for (int j=0;j<all.Length;j++)
{
all[j] = 0;
input[j] = 0;
}
.
.
.
for (int i=0;i<inp.Length;i++)
{
Inti (inp[i],dis[i],all[i]);
}
.
.
.
void Inti (int[] i,string[] s,int[] a)
{
.
.
}
提示:具匹配的重载方法具有一些无效参数.
int[] all = new int[8];
int[] inp = new int[8];
for (int j=0;j<all.Length;j++)
{
all[j] = 0;
input[j] = 0;
}
.
.
.
for (int i=0;i<inp.Length;i++)
{
Inti (inp[i],dis[i],all[i]);
}
.
.
.
void Inti (int[] i,string[] s,int[] a)
{
.
.
}
提示:具匹配的重载方法具有一些无效参数.