Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ANSI C¶ÁÊé±Ê¼ÇϵÁÐÖ®×Ö·û¼¯Æª µÚËÄÕ ×Ö½ÚÐò

"endian"Õâ¸ö´Ê³ö×Ô<<¸ñÁзðÓμÇ>>,СÈ˹úµÄÄÚÕ½¾ÍÔ´ÓÚ³Ô¼¦µ°Ê±ÊǾ¿¾¹´Ó´óÍ·(Big-Endian)Çÿª»¹ÊÇ´ÓСͷ(Little-Endian)Çÿª.ÎÒÃÇÒ»°ã½«endian·­Òë³É"×Ö½ÚÐò",½«big endianºÍlittle endian³Æ×÷"´ó¶Ë"ºÍ"С¶Ë".
ÔÚ¼ÆËã»ú¿ÆÑ§ÁìÓòÖÐ,×Ö½ÚÐòÊÇÖ¸´æ·Å¶à×Ö½ÚÊý¾ÝµÄ×Ö½ÚµÄ˳Ðò,µäÐ͵ÄÇé¿öÊÇÕûÊýÔÚÄÚ´æÖеĴæ·Å·½Ê½ºÍÍøÂç´«ÊäµÄ´«Êä˳Ðò.¼ÈÈ»ÎÒÃÇÔÚ±¾Æª½éÉÜ×Ö½ÚÐò,ÄÇËù˵µÄÖØµãÔòÆäÒ»ÊÇ×Ö·û(¶à×Ö½Ú)ÔÚÄÚ´æÖеÄ×Ö½Ú´æ·Å˳Ðò(ÕâÓëÇ°ÃæµÄµäÐÍÇé¿öÊÇͬһÀà),Æä¶þÊÇ×Ö·û(¶à×Ö½Ú)ÔÚÎļþÖб£´æµÄ±àÂë˳Ðò.
Ò»°ã̸µ½×Ö½ÚÐòÎÊÌâ,¶¼ÊÇÖ¸ÉÏÃæËµµÄµäÐÍÇé¿ö,Ö÷ÒªÊÇ´¦ÀíÄÚ´æÖÐÊý¾Ý.ÕâÀïµÄ×Ö½ÚÐò¸úCPUÏà¹Ø,Ö÷񻃾¼°Á½´óÅÉϵ:MotorolaϵÁкÍIntelµÄx86ϵÁÐ.Motorola²ÉÓÃbig endian·½Ê½´æ´¢Êý¾Ý,¶øx86ϵÁÐÔò²ÉÓÃlittle endian·½Ê½´æ´¢Êý¾Ý,µ±È»,»¹ÓÐARMµÈ¿ÉÅäÖÃ"´ó¶Ë""С¶Ë"CPUϵÁÐ.
big endianÊÇÖ¸µÍµØÖ·´æ·Å×î¸ßÓÐЧ×Ö½Ú,¶ølittle endianÔòÊǵ͵ØÖ·´æ·Å×îµÍÓÐЧ×Ö½Ú. ÈçÊý×Ö0x12345678ÔÚÁ½ÖÖ²»Í¬×Ö½ÚÐòCPUÖеĴ洢˳ÐòÈçÏÂËùʾ:
Big Endian
                       µÍµØÖ·                                            ¸ßµØÖ·
                          ----------------------------------------->
                     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                    |     12     |      34    |     56      |     78    |
      &


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄC/S¶àÏß³ÌÓ¦ÓÃ

Ò»¸ö¼òµ¥µÄC/S¶àÏß³ÌÓ¦ÓÃ,ÉÔ΢À©Õ¹¾Í¿ÉÒÔÓÃÁË
/*socketÊÇÍøÂçÓ¦ÓóÌÐòµÄºËÐÄ£¬ÔÚ·þÎñÆ÷¶Ë»ò¿Í»§¶ËÍøÂçÓ¦ÓóÌÐòÖУ¬socket½ÔΪ²»¿ÉȱÉÙµÄÒªËØ
*ÔÚ·þÎñÆ÷³£¼ûµÄÓ¦ÓÃÓУºFTP·þÎñÆ÷£¬MAIL·þÎñÆ÷£¨SMTP£¬POP3£¬IMAP4ЭÒ飩£¬WEB£¨HTTPЭÒ飩
*½¨Á¢·þÎñÆ÷¶ËSOCKETµÄÓ¦ÓóÌÐò²½ÖèÈçÏ£º
*1¡£½¨Á¢·þÎñÆ÷¶ËµÄSOCKET£¬²¢ÇÒÒÔ´ ......

UVa Online Judge Volume C ÌâÄ¿ºÍ½â´ðË÷Òý

UVa Online Judge - Volume C ÌâÄ¿ºÍ½â´ðË÷Òý¡£Ç°ÃæÎªÔ­ÌâÁ´½Ó£¬ºóÃæÎªÎҵĽâ´ðÁ´½Ó¡£
·µ»Ø×ÜĿ¼
10003 - Cutting Sticks
Dynamic Programming
Solution
10004 - Bicoloring
Graph: BFS
Solution
10006 - Carmichael Numbers
Number Theory: Modulus
Solution
10010 - Where's Waldorf?
String
Solution ......

³ÌÐòԱ֮·©¤©¤ÈçºÎѧϰCÓïÑÔ²¢¾«Í¨CÓï


×ªÔØ×Ô: http://bbs.chinaitlab.com/thread-304041-1-1.html
ѧϰCÓïÑÔ²»ÊÇÒ»³¯Ò»Ï¦µÄÊÂÇ飬µ«Ò²²»ÐèÒª»¨·ÑÊ®Äêʱ¼ä²ÅÄܾ«Í¨¡£ÈçºÎÒÔ×îСµÄ´ú¼Ûѧϰ²¢¾«Í¨CÓïÑÔÊDZ¾ÎĵÄÖ÷Ìâ¡£Çë×¢Ò⣬¼´Ê¹ÊÇ“×îСµÄ´ú¼Û”£¬Ò²¾ø²»ÊÇʲô½Ý¾¶£¬¶øÊÇÒÔ×î¶ÌµÄʱ¼äÈ¡µÃ×î¶àµÄÊÕ»ñ£¬Í¬Ê±Ò²Òâζ×ÅÄãÐèÒª¾­Àú¼è¿àµÄ¹ý³Ì¡£
Ò»¡¢Òª¶Á ......

¡¾C\C++ÓïÑÔÈëÃÅÆª¡¿ µ÷ÊÔ»ù´¡

ͨ¹ýÇ°ÃæÁ½Æª£¬ÏàÐÅ´ó¼ÒÒѾ­»ù±¾Á˽âÁËÎÒÃǵÄÑо¿Ë¼Â·¡£¼ÈÈ»ÊÇÑо¿£¬ÄÇô±ØÐëµÄÑо¿¹¤¾ß¾ÍµÃÊìÁ·ÕÆÎÕÁË¡£ÕâÀïÎÒËùÖ¸µÄÑо¿¹¤¾ß¾ÍÊÇVC£¬ÎÒËùʹÓõÄVC°æ±¾ÊÇ2005¡£±¾ÎÄÒ²½«¸ù¾ÝVC2005½øÐÐ̽ÌÖ¡£¿ÉÄܺܶàÅóÓÑ»òÕß³õѧÕß»¹ÊÇʹÓõÄVC6.0¡£ÔÚÕâÀï±¾È˲»ÍƼöʹÓÃVC6.0¡£Ô­ÒòºÜ¼òµ¥£¬VC6.0ÒѾ­¹ýʱÁË£¬ºóÃæµÄ°æ±¾±ÈVC6.0¸üÇ¿´ó·½±ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ