I am really confused on this one. I have 5 elements in a string array.
I have to separate the text from the numbers into two new arrays. One string containing {"Widget ", "Thingy", "Ratchet", "Clanger", "Fracker"} and the second a double array containing {15.50, 50.99, 25.00, 115.49, 75.25}
I don't know how to do this with an array. Can someone help?
Code:
string[] strings = { "Widget 15.50", "Thingy 50.99", "Ratchet25.00", "Clanger115.49", "Fracker75.25" };
I don't know how to do this with an array. Can someone help?
Comment