Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 22nd, 2005, 11:17 PM
ck ck is offline
Authorized User
 
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default any1 can help me, pls...

hi,
 do any1 know how to convert 255 to binary 1? i doing graphic programming now...so the image is in 8 bits(binary form), but althoughthe image is in binary form, but the value still is 0 - 255...so, i wan to convert octal 255(8 bits) to binary 1(which is 255 equal to binary 1) & 0 is equal to binary 0...so, do any1 know how to convert it??? thanks a lot...
 i rushing this...so, hope i can hear from u soon...

best regards,
ck
:)

__________________
ck.
Reply With Quote
  #2 (permalink)  
Old February 24th, 2005, 07:51 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

I don't know if I get your meaning correctly,
for octal to binary(convert every digit to its binary)
173.12(Oct)----->001,111,011.001,010(Bin)
for binary to octal
11,101.11(Bin)--------->011,101.110(Bin)------>35.6(Oct)

_____________
Mehdi.
software student.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
MSI Installer Problem ... any1 help? hamkachan General .NET 0 March 23rd, 2008 09:12 PM
Any1 have a TBH CustomEvents Source? krainov BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 28th, 2007 01:54 AM
Can any1 help me out prashanth_a18 C++ Programming 1 September 26th, 2006 05:09 PM
any1 can help me, pls... ck Visual C++ 1 February 23rd, 2005 09:02 PM
Can any1 help me?! Garri Visual C++ 1 July 6th, 2004 01:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.