From: Adam on 21 Jun 2010 13:24 Hi, I have a text box where something like [2 3 5] [c] [c] [c] [5 7 8 9] [c] Is the input. These are intended to be structures specifying whether a variable is continuous or discrete (the values being the discrete steps). I would like to take this contents and put in a structure so that I have a 3D array. The issue is that they are from a textbox so I get something like '[2 3 5] [c] [c] [c] [5 7 8 9] [c]' as a string. I'm looking for an easy way to put these structures into one big structure. Is there a better way then manually finding the index of '[' and ']' and looking for what is in between? Thanks for any response.
|
Pages: 1 Prev: beginner question Next: Reading a large mixed CSV file of unknown types and size |