using System;
namespace testdatetostr
{
class Program
{
static void Main(string[] args)
{
string[] stringArray = { "0.1", "1.01", "-1.01" };
double[] doubleArray = new double[3];
int i = 0;
foreach (string str in stringArray)
{
doubleArray[i] = Convert.ToDouble(str);
Console.WriteLine(doubleArray[i++]);
}
Console.ReadKey();
}
}
}
[[it] 本帖最后由 hellson 于 2008-10-31 10:39 编辑 [/it]]