Thread: Accessing bitstream in C

  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    1

    Accessing bitstream in C

    So I have an assignment where I need to read from a file and get a string like "Four score\n" and use its bitstream of 01000110011011110111010101110010001000000111001101 10001101101111011100100110010100001010 to make an encoding that the instructor provided. I have the code to read the chars from the file into a char array, but then how do I access the bitstream in order to mask and then encode? Any help would be appreciated as I am lost on what to do! Thanks

  2. #2
    Ultraviolence Connoisseur
    Join Date
    Mar 2004
    Posts
    555
    1. What type of encoding
    2. Where is the code you've written
    3. "Any help" is not a question, ask specific direct questions about issues you are having with the code you've ALREADY written.

  3. #3
    11DE784A SirPrattlepod's Avatar
    Join Date
    Aug 2013
    Posts
    485
    Do people still read books?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,662
    You get the bits using & | >> and << operators.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Accessing classes
    By Mavix in forum C# Programming
    Replies: 2
    Last Post: 02-16-2008, 09:43 PM
  2. Replies: 3
    Last Post: 12-23-2006, 06:57 PM
  3. DAO accessing Jet v4
    By Morgan in forum Windows Programming
    Replies: 3
    Last Post: 07-19-2004, 02:23 AM
  4. accessing printer
    By micklarko in forum C Programming
    Replies: 2
    Last Post: 10-19-2003, 10:43 PM
  5. Accessing another HDD
    By Waldo2k2 in forum Tech Board
    Replies: 0
    Last Post: 12-22-2002, 01:26 PM

Tags for this Thread