This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Binary


Binary

Postby RICoder » Mar 11, 2002 @ 11:33pm

How the hell do you specify a number as binary in C++?

0x for hex...and?
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby James S » Mar 12, 2002 @ 12:04am

01010101
1, 2, 4, 8, 16, 32, 64, 128
so I just typed in the number 170... I'm not sure if that's what you mean, but it might be.
<img src="http://home.comcast.net/~sonne/james/tag.gif">
James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby Dan East » Mar 12, 2002 @ 12:39am

You can't. You have to enter them as Hex, Decimal or Octal.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby RICoder » Mar 12, 2002 @ 6:35am

Thanks Dan, I went digging and saw that myself.

You'd think after coding for 19 years I'd know that...

As for Moose, thanks for the binary lesson.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby Dan East » Mar 12, 2002 @ 9:08am

Last edited by Dan East on Mar 12, 2002 @ 4:17pm, edited 1 time in total.
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Mar 12, 2002 @ 9:12am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby James S » Mar 12, 2002 @ 2:33pm

well it is only version 0.1, Dan. Not even you, the almighty Dan East, can do it perfect the first time.
<img src="http://home.comcast.net/~sonne/james/tag.gif">
James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby Digby » Mar 13, 2002 @ 12:10am

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby Dan East » Mar 13, 2002 @ 12:55am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum