I have no experience in C# programming.
I want the user defined method below
public void RO(List<double> b,List<double> r,int n)
{
int i;
for (i=n;i>=0;i--)//load d reversed into r
{
r.Add(b[i]);
}
}
to load the values in p into r but when RO is called, r.Count = 0 so I get an error message, "Accessing an index with a value that is out of range."
How do I get r to have the same size as p?
Regards
Leon
Comment