473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Mar 15 '12 #1
1 4852
Banfa
9,065 Expert Mod 8TB
Use the same bitwise operators that exists in both C and C++

| bitwise or
& bitwise &
^ bitwise xor
~ bitwise invert
<< shift left
>> shift right
Mar 15 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bengt Richter | last post by:
Why wouldn't quote-stuffing solve the problem, and let you treat \ as an ordinary character? In a raw string, it's no good for preventing end-of-quoting anyway, unless you want the literal \ in...
2
by: Bill Mittenzwey | last post by:
Is there a way to do a Regex replace on a string to stuff some variable amount of spaces into a location of a string? I need an expression which would take an unknown length string and move the...
1
by: ree | last post by:
When I download the files using InternetReadFile, they seem to lose the formating all the spaces gets removed, and thus I can't open the file. Here is the file (it a doc fie) ________ ĐĎࡱá
2
by: Steven T. Hatton | last post by:
I'm trying to parse an ELF file to build a human readable representation. I know it's been done before, and there are tools such as objdump, nm, readelf, c++filt, etc. I can look at the source to...
4
by: sarath1111 | last post by:
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...
0
by: beary | last post by:
I need some advice re permissions etc. Here's the situation: at my workplace, I have a website which sits in a folder created by the IT manager, and given certain permissions (I'm not even yet sure...
1
by: dan.goyette | last post by:
I'm fairly new to using AJAX. I'm currently developing a data grid application in coldfusion, using AJAX for paging/filter/sorting updates to the grid. So far I've just been returning raw html, and...
5
by: Elaine121 | last post by:
Hi i send characters to a server with escape character 'e' and flag 'f'. But now i dont know how to extract the original string. I thought maybe this method would work but i was wrong. any help plz?...
0
by: bsudhir6 | last post by:
I wrote a C program implementing charecter stuffing i'm providing a file contains everything i've followed to write the program i need someone solve the errors ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.