an array question [modified]
-
Hi Guys i have an array below string stringArray = new strinArray[12]; stringArray[0] = "0,1"; stringArray[1] = "1,3"; stringArray[2] = "1,4"; stringArray[3] = "2,1"; stringArray[4] = "2,4"; stringArray[5] = "3,7"; stringArray[6] = "4,3"; stringArray[7] = "4,2"; stringArray[8] = "4,8"; stringArray[9] = "5,5"; stringArray[10] = "5,6"; stringArray[11] = "6,2"; i need to transform like below List<List<string>> listStringArray = new List<List<string>>(); listStringArray[["1","3","4"],["1","4"],["7"],["3","2","8"],["5","6"],["2"]]; how is that possible?
modified on Tuesday, May 26, 2009 11:27 AM
-
Hi Guys i have an array below string stringArray = new strinArray[12]; stringArray[0] = "0,1"; stringArray[1] = "1,3"; stringArray[2] = "1,4"; stringArray[3] = "2,1"; stringArray[4] = "2,4"; stringArray[5] = "3,7"; stringArray[6] = "4,3"; stringArray[7] = "4,2"; stringArray[8] = "4,8"; stringArray[9] = "5,5"; stringArray[10] = "5,6"; stringArray[11] = "6,2"; i need to transform like below List<List<string>> listStringArray = new List<List<string>>(); listStringArray[["1","3","4"],["1","4"],["7"],["3","2","8"],["5","6"],["2"]]; how is that possible?
modified on Tuesday, May 26, 2009 11:27 AM
"someString".Split and logic.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
"someString".Split and logic.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
Hi Guys i have an array below string stringArray = new strinArray[12]; stringArray[0] = "0,1"; stringArray[1] = "1,3"; stringArray[2] = "1,4"; stringArray[3] = "2,1"; stringArray[4] = "2,4"; stringArray[5] = "3,7"; stringArray[6] = "4,3"; stringArray[7] = "4,2"; stringArray[8] = "4,8"; stringArray[9] = "5,5"; stringArray[10] = "5,6"; stringArray[11] = "6,2"; i need to transform like below List<List<string>> listStringArray = new List<List<string>>(); listStringArray[["1","3","4"],["1","4"],["7"],["3","2","8"],["5","6"],["2"]]; how is that possible?
modified on Tuesday, May 26, 2009 11:27 AM
-
wow, is your code compiling? It's very strange. To convert an array to list, try this wonderful website : herehere
-
Try looking at the documentation for the generic list constructor. If you can't figure it out from there you may have a PEBKAC error.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
Go rot in a hole, stop thinking people will do your work for you for free. What the hell do you think this is??
-
bluetx wrote:
if easy so you write for me here man
That is not the point, if people come here asking for advice and help then others will help. If people come here asking for people to write code for them because they are too lazy then others will kindly tell them where to go i.e. switching off the computer and going to teach sports.
My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)
-
bluetx wrote:
if easy so you write for me here man
No one is going to code for you. Go to rentacoder if that's what you want. Otherwise, read the other posts and learn something.
-
bluetx wrote:
i dont want to work for me anybody what do you mean?i dont understand.r u drinking?
The question should be 'Are YOU drinking?' as what you have just said makes no sense.
My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)
-
bluetx wrote:
if easy so you write for me here man
That is not the point, if people come here asking for advice and help then others will help. If people come here asking for people to write code for them because they are too lazy then others will kindly tell them where to go i.e. switching off the computer and going to teach sports.
My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)
-
you didnt understand me. i said write code if easy.its a gibe.you are very emotional.wake up ;P
-
I'm not your dog man, try by your own or transfer cash to my account and perhaps i'll do it. good luck
-
No, he would then be an employee. One of three things is going to happen here, you tool. Firstly, you will fail your course, if you are taking one. Secondly, you will not complete your project, which is comparable to point one. Thirdly, your employer will fire you or your employer will terminate your contract if your obligations rest on one point. Either way, you fail. I'd suggest checking out rentacoder.com, it is a website where you can pay to have work done. You won't find your answer anywhere else unless you code your own logic or pay for it.