Hi Guys,
I was wondering if it was possible to multiply lists against list and lists against doubles.
My program contains a list of randomly generated numbers(doubles), and several double values for instance "double n = 12". which are collected from user input
What im trying to do is not only muliply that n'th value with the list but with a selected value from the list.
my random gen list code is as below
double weightNo = numberHn * numberInput;
if (weightNo < 1) return;
for(double i = 1; i <= weightNo; i++) inweight.Add( - 0.5 +weight.NextDouble());
listBox4.DataSource = (inweight);
just wondering if its possible, even to multiply the value against each value in the list would be great.
Hope someone can help!
Cheers!
Loading

VulpesRank #55 · 29.2K reputationPosted Jan 11, 2012, 11:43 PM EST
John34 reputationPosted Jan 12, 2012, 4:16 AM EST
for (double i; i < inweight.Count; i++) inweight[i] *= inputs;
getting too errors. 1 about converting double to int and 2 invalid statement
VulpesRank #55 · 29.2K reputationPosted Jan 12, 2012, 4:40 AM EST