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 / C++ / MFC
  4. Big binary array to decimal array.

Big binary array to decimal array.

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structuresbusinesstutorialquestion
5 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.
  • M Offline
    M Offline
    Michael Liu
    wrote on last edited by
    #1

    Any one knows how to convert a binary array to a decimal array in C++? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

    C 1 Reply Last reply
    0
    • M Michael Liu

      Any one knows how to convert a binary array to a decimal array in C++? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      what's a "binary array" ? -c


      All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering, on how to control the public

      War Pigs

      P 1 Reply Last reply
      0
      • C Chris Losinger

        what's a "binary array" ? -c


        All you have to do is tell the people they are being attacked, and denounce the opposition for lack of patriotism and exposing the country to danger. -- Herman Goering, on how to control the public

        War Pigs

        P Offline
        P Offline
        Phil J Pearson
        wrote on last edited by
        #3

        ... and what's a "decimal array" ?


        The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

        N M 2 Replies Last reply
        0
        • P Phil J Pearson

          ... and what's a "decimal array" ?


          The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

          N Offline
          N Offline
          NormDroid
          wrote on last edited by
          #4

          1111 0000 1111 1000 = F0F0 is "111100001111000" a string? Developing with C++ is like programming by the seat of your pants

          1 Reply Last reply
          0
          • P Phil J Pearson

            ... and what's a "decimal array" ?


            The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

            M Offline
            M Offline
            Michael Liu
            wrote on last edited by
            #5

            Actually, I have a big integer value, larger than 80 bits which I can't use DOUBLE to hold this value and print it out. Now I have a array to hold this value by binary integers(0,1), then I need to convert it to another array which hold decimal integers(0 to 9) to present this large value. Because I can't use power of 2 ( if I have 256 bits, then I can't hold the it), I have touble to convert it. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

            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