|
From: P.T. W. M. <pt...@ea...> - 2004-01-04 04:42:43
|
An unsigned int is an unsigned integer which is an integer from 0 to the maximum value that sizeof(int) will hold on your system which is the value it would take on if all the bits were 1's. This is on many systems the default for "int". This is as compared to a signed int which uses the most significant bit of the byte or word to determine the "sign" (positive or negative) of the variable. Such bytes (or words) are then interpreted as negative. UINT is either a pre-processor macro, or (more likely) a typedef (alias) for unsigned int. For example: // Define an alias for unsigned int type typedef UINT unsigned int then to do this: // Standard way unsigned int uivar // You can now do this UINT uivar This typedef might be a part of windows.h... do a grep for it. At 20:24 03-01-04, Noorez Kassam wrote: >There are somethings i don't understand. > >I thought that you needed the windows.h file to use the UINT for unsigned >int? When I was programing for MS-DOS i never saw the UINT for unsigned int. > >and what would this program line do >#define true 0 > >and what is an unsigned char? > >_________________________________________________________________ >The new MSN 8: smart spam protection and 2 months FREE* >http://join.msn.com/?page=features/junkmail >http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |