Thread: RE: [Dev-C++] Hexadecimal Numbers
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: James G. <Jam...@Cl...> - 2001-01-05 09:26:13
|
What is the actual headache? Hex is only a way of displaying/storing numbers. Humans use base 10 and so the numbers repeat at 10. e.g. 1,2,3,4,5,6,7,8,9,10,11,12... Hex is base 16 so the numbers repeat after 16 numbers. e.g. 1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,10,11,12,13,14,15,16,17,18,19,1a,1b,1c,1d,1e,1 f,20... Regards, James. -----Original Message----- From: Caroline Tully [mailto:Car...@no...] Sent: Friday, January 05, 2001 9:12 AM To: 'dev...@li...' Subject: [Dev-C++] Hexadecimal Numbers Importance: High Help!! I'm working my way through a ' Teach yourself C ' book and have reached a Chapter about Hex. I wondered if anyone knew where I could get further information on Hex, as my book doesnt go into very much detail and it's making my head hurt!!! Please email me at ' car...@no... ' with any links. Cheers! Caroline _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |
|
From: Caroline T. <Car...@no...> - 2001-01-05 09:39:38
|
Thanks, Its a headache because I'm a complete novice on computers and i've just starting trying to teach myself C. > -----Original Message----- > From: James Gordon [SMTP:Jam...@Cl...] > Sent: Friday, January 05, 2001 9:23 AM > To: 'dev...@li...' > Subject: RE: [Dev-C++] Hexadecimal Numbers > > What is the actual headache? > > Hex is only a way of displaying/storing numbers. > Humans use base 10 and so the numbers repeat at 10. > e.g. 1,2,3,4,5,6,7,8,9,10,11,12... > Hex is base 16 so the numbers repeat after 16 numbers. > e.g. > 1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,10,11,12,13,14,15,16,17,18,19,1a,1b,1c,1d,1e > ,1 > f,20... > > Regards, > > James. > > > -----Original Message----- > From: Caroline Tully [mailto:Car...@no...] > Sent: Friday, January 05, 2001 9:12 AM > To: 'dev...@li...' > Subject: [Dev-C++] Hexadecimal Numbers > Importance: High > > > Help!! > I'm working my way through a ' Teach yourself C ' book and have reached a > Chapter about Hex. > I wondered if anyone knew where I could get further information on Hex, as > my book doesnt go into very much detail and it's making my head hurt!!! > Please email me at ' car...@no... ' with any links. > Cheers! > Caroline > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > This electronic message and any attachment is intended to be > read by the named addressee(s) only. > Any other recipient should be aware that its contents may be > legally privileged and/or confidential and that its use, > disclosure, copying or distribution may be unlawful. > Unless you are a named addressee, please delete this message > > Whilst C. & J. Clark International Limited has taken steps > to prevent the transmission of computer viruses with electronic mail, > responsibility for screening incoming messages and the risk of such > transmission and its consequences lies with the recipient. > > C. & J. Clark International Limited > Registered in England and Wales > Company No. 141015 > Registered Office: 40 High Street, Street, Somerset BA16 0YA > Telephone: +44 (0) 1458 443131 > Fax: +44 (0) 1458 447547 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > _____________________________________________________________________ > This message has been checked for all known viruses by Star Internet > delivered > through the MessageLabs Virus Control Centre. For further information > visit > http://www.star.net.uk/stats.asp |
|
From: Caroline T. <Car...@no...> - 2001-01-05 09:54:48
|
Thanks!!
> -----Original Message-----
> From: Ioannis Vranos [SMTP:no...@ya...]
> Sent: Friday, January 05, 2001 9:49 AM
> To: dev...@li...
> Subject: RE: [Dev-C++] Hexadecimal Numbers
>
> A number is stored and seen by a computer in binary format. So for example
> 4
> is stored as
> 100 . When you want to see the number in decimal format you use
> printf("%d",
> 4);
> Now there are more number systems than decimal format. Decimal format has
> its number base 0-9.
> Binary format has its number base 0-1. Hexadecimal format (your Hex) has
> its
> number base consisted of 16 numbers (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F). So
> our 4 (in decimal format) is 4 in Hex too.
> 10 is A in Hex.
> As i said your computer stores all the numbers in binary format. So
> assigning a variable x as:
>
> x=11;
>
> or x=0xb; (0x indicates hexadecimal format)
>
> is the same for your computer. To see the hexadecimal value without the 0x
> of an integer in C use
>
> printf("%x", variable);
>
> e.g. printf("%x", 11);
>
>
> %X makes the values appear in capital letterrs.
>
>
> Ioannis
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...]On Behalf Of Caroline
> > Tully
> > Sent: Friday, January 05, 2001 11:12 AM
> > To: 'dev...@li...'
> > Subject: [Dev-C++] Hexadecimal Numbers
> > Importance: High
> >
> >
> > Help!!
> > I'm working my way through a ' Teach yourself C ' book and have reached
> a
> > Chapter about Hex.
> > I wondered if anyone knew where I could get further information on Hex,
> as
> > my book doesnt go into very much detail and it's making my head hurt!!!
> > Please email me at ' car...@no... ' with any links.
> > Cheers!
> > Caroline
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
> >
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered
> through the MessageLabs Virus Control Centre. For further information
> visit
> http://www.star.net.uk/stats.asp
|
|
From: Hoo H. <hoo...@ho...> - 2001-01-05 10:10:16
|
hi,
I just managed to find some references for Win32 API. Anyone interested
please check out this URL :
http://www.mingw.org/docs.shtml
Nevertheless, the best source for Win32 API is still MSDN.
Regards,
Hoo Hong
|
|
From: Frazell T. <fr...@fl...> - 2001-01-05 11:22:00
|
MSDN is great but where on it is it i found it once after like 3 hours but cant again a link would be extremly helpful ----- Original Message ----- From: "Hoo Hong" <hoo...@ho...> To: <dev...@li...> Sent: Friday, January 05, 2001 5:11 AM Subject: Re: [Dev-C++] Win32 API > hi, > I just managed to find some references for Win32 API. Anyone interested > please check out this URL : > http://www.mingw.org/docs.shtml > Nevertheless, the best source for Win32 API is still MSDN. > > Regards, > Hoo Hong > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Alan T. <ala...@3n...> - 2001-01-05 12:03:18
|
"Hex" is a spell cast by an intelligent agent. This sometimes affects the
execution of software by stealing clock cycles on the computer.
Seriously . . . The hexadecimal system is a base 16 system, where
the decimal system is base 10. This means that each digit can represent
0-15, as opposed to 0-9 in decimal. After 9, of course, you need more
digits that don`t exist in base 10. The letters "A" through "F" represent
the digit values 10 through 15. Each digit is a power of 16, no longer a
power of 10, because this is a "base 16" system --- each digit can represent
one of 16 different values (0-15).
So, the hexadecimal number 1C converted to the decimal
system is 1x16^1 (16 to the first power) + Cx16^0 (16 to the zeroth power,
or 1),
which means 16 + 12 = 28.
When you think about it, it's a lot like the decimal system, where
274 = 2x10^2 + 7x10^1 + 4x10^0. It just seems weird because we have ten
fingers and normally use the decimal (base 10) system. Binary works the
same way but in base 2 (only two values, 0 or 1, for each digit).
Hope this helps, Alan
|
|
From: ropbert d b. <lon...@ju...> - 2001-01-05 12:50:01
|
Hex is a different way of thinking. However, it is not that hard once you understand the concept. Here is a good WEB site to help you. http://www.phoenix.net/~jacobson/pages/hex.html http://winnie.fit.edu/~emoore/hkbcheat.html This is a good example site http://www.hexworkshop.com/ This is a good HEX editor & converter Good luck & if you need help we are here. Lon...@ju... On Fri, 5 Jan 2001 09:12:18 -0000 Caroline Tully <Car...@no...> writes: > Help!! > I'm working my way through a ' Teach yourself C ' book and have > reached a > Chapter about Hex. > I wondered if anyone knew where I could get further information on > Hex, as > my book doesnt go into very much detail and it's making my head > hurt!!! > Please email me at ' car...@no... ' with any links. > Cheers! > Caroline > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |