Results 1 to 7 of 7

Thread: Help Reading Binary into Arrays in C++

Threaded View

  1. #1
    Join Date
    Jan 2010
    Beans
    137
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Help Reading Binary into Arrays in C++

    My goal is to read 8, 16, and 32 bit binary numbers into an array. How can I have the user enter the binary number (i.e. 10010110) and have each digit placed into 8 seperate spaces of an array?

    Also, I would like to know if I could do the same thing with a vector, if that is easier/more possible.
    Last edited by smdawson; June 7th, 2010 at 02:52 PM.
    Let books be your dining table, and you shall be full of delights,
    Let them be your mattress, and you shall sleep restful nights.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •