944,069 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4129
  • C++ RSS
Oct 11th, 2005
0

String to Bitstream

Expand Post »
How to convert strings to bitstream?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ankitrastogi82 is offline Offline
11 posts
since Aug 2005
Oct 11th, 2005
0

Re: String to Bitstream

I'm sorry, I tossed out my crystal ball years ago. You'll have to be more specific instead of expecting us to read your mind. As given, your question is ambiguous.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Oct 11th, 2005
0

Re: String to Bitstream

I just mean to say that I have some string and I want to convert it in a stream of bits.
Is there any function availaible in C++ which can do that. e,g
str = "A";
is represented as 1010 in bits .

Hope now you get me :o)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ankitrastogi82 is offline Offline
11 posts
since Aug 2005
Oct 11th, 2005
0

Re: String to Bitstream

There is a function in C++ that does what you want. But it might not have been written for you. So you're going to have to write it yourself.

You should also try figuring out _exactly_ what you are trying to do. Right now, you are being ambiguous. After all, a string is already a stream of bits! Also, your example of converting "A" to 1010 makes no sense to me at all. Why would "A" be converted into the stream 1010?
Team Colleague
Reputation Points: 1135
Solved Threads: 172
Super Senior Demiposter
Rashakil Fol is offline Offline
2,479 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Help On Obsolete Prog. Language
Next Thread in C++ Forum Timeline: Need help big time.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC