Bit Stuffing in C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Parshotam
    New Member
    • Mar 2012
    • 1

    Bit Stuffing in C++

    hi,
    I have to perform BIT STUFFING in C++ Language. I have to get data from the user and stuff the data and then transmit it. I have to destuff it at the other end. I have very less knowledge of performing this in C(As this should be done at bit level). How can we perform
    operations at bit level in C++?. Please help me how to get started with this. please reply at
    if u have any knowledge about it.
    Thanks
    Last edited by Meetee; Mar 15 '12, 06:21 AM. Reason: email id removed as it is against site policy
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Use the same bitwise operators that exists in both C and C++

    | bitwise or
    & bitwise &
    ^ bitwise xor
    ~ bitwise invert
    << shift left
    >> shift right

    Comment

    Working...