Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. an array question [modified]

an array question [modified]

Scheduled Pinned Locked Moved C#
questiondata-structures
31 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B bluetx

    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

    E Offline
    E Offline
    Ennis Ray Lynch Jr
    wrote on last edited by
    #2

    "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

    B 1 Reply Last reply
    0
    • E Ennis Ray Lynch Jr

      "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

      B Offline
      B Offline
      bluetx
      wrote on last edited by
      #3

      i know to split man.i actually need to logic :-D

      L E 2 Replies Last reply
      0
      • B bluetx

        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

        T Offline
        T Offline
        tom572007
        wrote on last edited by
        #4

        wow, is your code compiling? It's very strange. To convert an array to list, try this wonderful website : herehere

        B 1 Reply Last reply
        0
        • B bluetx

          i know to split man.i actually need to logic :-D

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #5

          The logic isn't the hard part here.. actually there is no hard part at all.

          1 Reply Last reply
          0
          • T tom572007

            wow, is your code compiling? It's very strange. To convert an array to list, try this wonderful website : herehere

            B Offline
            B Offline
            bluetx
            wrote on last edited by
            #6

            if easy so you write for me here man :laugh:

            L F T 0 4 Replies Last reply
            0
            • B bluetx

              i know to split man.i actually need to logic :-D

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #7

              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

              OriginalGriffO 1 Reply Last reply
              0
              • B bluetx

                if easy so you write for me here man :laugh:

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                no one is going to write you code here, you can go to this site[^] if that's what you're looking for.

                Check out the CodeProject forum Guidelines[^]

                B 1 Reply Last reply
                0
                • L Lost User

                  no one is going to write you code here, you can go to this site[^] if that's what you're looking for.

                  Check out the CodeProject forum Guidelines[^]

                  B Offline
                  B Offline
                  bluetx
                  wrote on last edited by
                  #9

                  do you need money man? you know something please share me but shut up.

                  L 1 Reply Last reply
                  0
                  • B bluetx

                    do you need money man? you know something please share me but shut up.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    Go rot in a hole, stop thinking people will do your work for you for free. What the hell do you think this is??

                    Check out the CodeProject forum Guidelines[^]

                    B 1 Reply Last reply
                    0
                    • L Lost User

                      Go rot in a hole, stop thinking people will do your work for you for free. What the hell do you think this is??

                      Check out the CodeProject forum Guidelines[^]

                      B Offline
                      B Offline
                      bluetx
                      wrote on last edited by
                      #11

                      i dont want to work for me anybody what do you mean?i dont understand.r u drinking?

                      L F 2 Replies Last reply
                      0
                      • B bluetx

                        i dont want to work for me anybody what do you mean?i dont understand.r u drinking?

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #12

                        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.

                        Check out the CodeProject forum Guidelines[^]

                        B 1 Reply Last reply
                        0
                        • B bluetx

                          if easy so you write for me here man :laugh:

                          F Offline
                          F Offline
                          fly904
                          wrote on last edited by
                          #13

                          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)

                          B 1 Reply Last reply
                          0
                          • L Lost User

                            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.

                            Check out the CodeProject forum Guidelines[^]

                            B Offline
                            B Offline
                            bluetx
                            wrote on last edited by
                            #14

                            who are you this? you say again again again renta renta renta? do u work for renta :laugh:

                            L 1 Reply Last reply
                            0
                            • B bluetx

                              i dont want to work for me anybody what do you mean?i dont understand.r u drinking?

                              F Offline
                              F Offline
                              fly904
                              wrote on last edited by
                              #15

                              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)

                              1 Reply Last reply
                              0
                              • F fly904

                                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)

                                B Offline
                                B Offline
                                bluetx
                                wrote on last edited by
                                #16

                                you didnt understand me. i said write code if easy.its a gibe.you are very emotional.wake up ;P

                                F 1 Reply Last reply
                                0
                                • B bluetx

                                  if easy so you write for me here man :laugh:

                                  T Offline
                                  T Offline
                                  tom572007
                                  wrote on last edited by
                                  #17

                                  I'm not your dog man, try by your own or transfer cash to my account and perhaps i'll do it. good luck

                                  B 1 Reply Last reply
                                  0
                                  • B bluetx

                                    you didnt understand me. i said write code if easy.its a gibe.you are very emotional.wake up ;P

                                    F Offline
                                    F Offline
                                    fly904
                                    wrote on last edited by
                                    #18

                                    You sir, are a tool.

                                    My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                                    1 Reply Last reply
                                    0
                                    • T tom572007

                                      I'm not your dog man, try by your own or transfer cash to my account and perhaps i'll do it. good luck

                                      B Offline
                                      B Offline
                                      bluetx
                                      wrote on last edited by
                                      #19

                                      if i will send you money,you are my dog? :)

                                      L B 2 Replies Last reply
                                      0
                                      • B bluetx

                                        if i will send you money,you are my dog? :)

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #20

                                        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.

                                        Check out the CodeProject forum Guidelines[^]

                                        1 Reply Last reply
                                        0
                                        • B bluetx

                                          who are you this? you say again again again renta renta renta? do u work for renta :laugh:

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #21

                                          I've done work for people through the site rentacoder, which facilitates easy communication between people such as yourself looking for work to get done and coders / programmers looking for quick (or lengthy) jobs.

                                          Check out the CodeProject forum Guidelines[^]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups