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. convert long->p[][]

convert long->p[][]

Scheduled Pinned Locked Moved C#
tutorial
8 Posts 4 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.
  • C Offline
    C Offline
    cst_kvp
    wrote on last edited by
    #1

    How to convert long type to twodimensionalarray conversion for example private long nP; public long giveNewPolygs(ref PointF[][] newP) { long n; try { n = p[0].Length; n = p.Length - 1; } catch (Exception ex) { return -1; } newP = nP; newP = p; return n; }

    C M G 3 Replies Last reply
    0
    • C cst_kvp

      How to convert long type to twodimensionalarray conversion for example private long nP; public long giveNewPolygs(ref PointF[][] newP) { long n; try { n = p[0].Length; n = p.Length - 1; } catch (Exception ex) { return -1; } newP = nP; newP = p; return n; }

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The real question is, how do you WANT to turn a single number into a 2D array of points ?

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      C 1 Reply Last reply
      0
      • C Christian Graus

        The real question is, how do you WANT to turn a single number into a 2D array of points ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        C Offline
        C Offline
        cst_kvp
        wrote on last edited by
        #3

        really i dont understand that answer. please give me the correct code conversion for array[][] to long.

        C 1 Reply Last reply
        0
        • C cst_kvp

          How to convert long type to twodimensionalarray conversion for example private long nP; public long giveNewPolygs(ref PointF[][] newP) { long n; try { n = p[0].Length; n = p.Length - 1; } catch (Exception ex) { return -1; } newP = nP; newP = p; return n; }

          M Offline
          M Offline
          Manoj Kumar Rai
          wrote on last edited by
          #4

          What do you actually want to do here?

          Manoj Never Gives up

          C 1 Reply Last reply
          0
          • M Manoj Kumar Rai

            What do you actually want to do here?

            Manoj Never Gives up

            C Offline
            C Offline
            cst_kvp
            wrote on last edited by
            #5

            This is my code part. In here i want the conversion for newP = nP; private long nP; public long giveNewPolygs(ref PointF[][] newP) { long n; try { n = p[0].Length; n = p.Length - 1; } catch (Exception ex) { return -1; } newP = nP; newP = p; return n; }

            1 Reply Last reply
            0
            • C cst_kvp

              really i dont understand that answer. please give me the correct code conversion for array[][] to long.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              I am speechless. I can convert a single long into a 2D array any number of ways. There is no actual, obvious conversion. Therefore, you need to explain yourself better, because the odds are that if I make up an answer, I will answer the question, without helping you. Is the long a pointer to an array, is that the problem ?

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              1 Reply Last reply
              0
              • C cst_kvp

                How to convert long type to twodimensionalarray conversion for example private long nP; public long giveNewPolygs(ref PointF[][] newP) { long n; try { n = p[0].Length; n = p.Length - 1; } catch (Exception ex) { return -1; } newP = nP; newP = p; return n; }

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                There is no such conversion predefined, and there is no obvious way of constructing a conversion like that. What is your idea about what a conversion like that would do? For any given example value, what would you expect the result to be?

                Despite everything, the person most likely to be fooling you next is yourself.

                C 1 Reply Last reply
                0
                • G Guffa

                  There is no such conversion predefined, and there is no obvious way of constructing a conversion like that. What is your idea about what a conversion like that would do? For any given example value, what would you expect the result to be?

                  Despite everything, the person most likely to be fooling you next is yourself.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  Good luck - he stopped answering when I asked the same thing.

                  Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  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