.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   Binary numbers (http://forums.bots-united.com/showthread.php?t=1233)

Lazy 03-04-2004 12:13

Re: Binary numbers
 
Oh well, converting isn't hard at all I just didn't want to do it. Thanks for all of the info.

[ Added ]
koraX, I was displaying a character, not a number in binary format.

@$3.1415rin 03-04-2004 12:17

Re: Binary numbers
 
with a bit of practice you get used to hex numbers -> no need for binary representation in C/C++

koraX 03-04-2004 12:23

Re: Binary numbers
 
Quote:

Originally Posted by Lazy
koraX, I was displaying a character, not a number in binary format.

character is also a number in computer's memory :)

Lazy 03-04-2004 12:26

Re: Binary numbers
 
I know :)
I thought I had pasted the whole source file and got a little confused.

It was simply printf( "%c\n", charupper( 'z' ) ); but it worked as expected printing out an uppercase Z.


All times are GMT +2. The time now is 08:58.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.