C/C++ ÖеÄÒÆλ²Ù×÷Ê°ÒÅ
ÒýÑÔ
×î½ü±ÊÕßÒ»Ö±ÔÚ×öJPEGµÄ½âÂ빤×÷£¬·¢ÏÖÓÃÍêȫʹÓùþ·òÂüÊ÷½øÐнâÂë±È½Ï·Ñʱ£¬¶øʹÓñí½á¹¹´æ´¢±àÂëºÍÖµµÄ¶ÔÓ¦¹Øϵ±È½Ï¿ì½Ý£¬µ«ÊÇÒ²´æÔڱȽÏÄÑ´¦ÀíµÄµØ·½£¬±ÈÈç½âÂ빤×÷ͨ³£ÊÇÒÔλΪµ¥Î»µÄ²Ù×÷£¬ÕâÀï±ØÈ»»áÉæ¼°µ½ÒÆλ²Ù×÷£¬¶ø±ÊÕß֮ǰ¶ÔλµÄ²Ù×÷ºÜÉÙ£¬¾ÑéºÜǷȱ£¬¾¹ýÕâ´ÎÀúÁ·ÖÕÓÚ·¢ÏÖÁËÒ»¸ö×Ô¼ºÔø¾ºöÊӵĶ«Î÷£¬ÄǾÍÊÇC/C++ÖеÄÒÆλ²Ù×÷ÈÝÒ׳ö´íµÄÇé¿ö¡£
1¡¢Ê²Ã´ÑùµÄÊý¾ÝÀàÐÍ¿ÉÒÔÖ±½ÓÒÆλ
char¡¢short¡¢int¡¢long¡¢unsigned char¡¢unsigned short¡¢unsigned int¡¢unsigned long¶¼¿ÉÒÔ½øÐÐÒÆλ²Ù×÷£¬¶ødouble¡¢float¡¢bool¡¢long doubleÔò²»¿ÉÒÔ½øÐÐÒÆλ²Ù×÷¡£
2¡¢ÓзûºÅÊý¾ÝÀàÐ͵ÄÒÆλ²Ù×÷
¶ÔÓÚchar¡¢short¡¢int¡¢longÕâЩÓзûºÅµÄÊý¾ÝÀàÐÍ£º
¶Ô¸ºÊý½øÐÐ×óÒÆ£º·ûºÅλʼÖÕΪ1£¬ÆäËûλ×óÒÆ
¶ÔÕýÊý½øÐÐ×óÒÆ£ºËùÓÐλ×óÒÆ£¬¼´ <<£¬¿ÉÄÜ»á±ä³É¸ºÊý
¶Ô¸ºÊý½øÐÐÓÒÒÆ£ºÈ¡¾ø¶ÔÖµ£¬È»ºóÓÒÒÆ£¬ÔÙÈ¡Ïà·´Êý
¶ÔÕýÊý½øÐÐÓÒÒÆ£ºËùÓÐλÓÒÒÆ£¬¼´ >>
3¡¢ÎÞ·ûºÅÊý¾ÝÀàÐ͵ÄÒÆλ²Ù×÷
¶ÔÓÚunsigned char¡¢unsigned short¡¢unsigned int¡¢unsigned longÕâЩÎÞ·ûºÅÊý¾ÝÀàÐÍ£º
ûÓÐÌØÊâҪ˵Ã÷µÄ£¬Ê¹ÓÃ<< ºÍ >> ²Ù×÷·û¾ÍOKÁË
½áÊøÓï
8086 ÖдæÔÚÂß¼ÒÆλ¡¢ËãÊõÒÆ룬¶øC\C++ÖеÄÒÆλËƺõ¼È²»ÊÇÂß¼ÒÆ룬Ҳ²»ÊÇËãÊõÒÆλ¡£
±ÈÈç-1£¬ÎÒÃÇÈô¶ÔËüÓÒÒÆ1룬CµÄ½á¹ûÈÔ¾ÉÊÇ-1£¬ÊÂʵÉÏÎÞÂÛÓÒÒƶàÉÙλʼÖÕÊÇ-1£¬Âß¼ÒÆλµÃµ½µÄ½á¹û£¨8λ±íʾ£©Ó¦¸ÃÊÇ-128£¬ËùÒÔÕâµãҪעÒâ¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/BoyMgl/archive/2008/07/06/2619264.aspx
Ïà¹ØÎĵµ£º
Ò»£® ¸ÅÊö
ÄÚ´æй©һֱÊÇÈí¼þ¿ª·¢ÈËÔ±×îÍ·´óµÄÎÊÌâÖ®Ò»£¬ÓÈÆäÏñC/C++ÕâÑù×ÔÓɶȷdz£´óµÄ±à³ÌÓïÑÔ£¬¼¸ºõÊÇÿһ¸öÓÃÆ俪·¢³öÀ´µÄÈí¼þ¶¼»á³öÏÖÄÚ´æй©µÄÇé¿ö¡£
Èç¹ûûÓÐÄÚ´æй©£¬ÊÀ½ç»òÐí»á±äµÄÃÀºÃ¡£È»¶ø£¬ÍêÈ«ÃÀºÃµÄÊÀ½çÊDz»´æÔڵģ¬ÎÒÃÇÄÜ×öµÄ¾ÍÊǾ¡Á¿ÈÃËü±äµÄ¸üÃÀ ......
»Ø¹Ë֮ǰµÄƪ·ù£¬CÓïÑÔµÄÖ÷Ì岿·Ö»ù±¾ÒѾ½éÉÜÍêÁË¡£Ö®ËùÒÔûÓнéÉÜC++µÄÏà¹ØÌØÐÔÊÇÒòΪÔÚ֮ǰµÄÎÄÕÂÖÐCºÍC++ÔÚÕâЩ·½Ã涼Óй²ÐÔ£¬ËùÒÔÔÚÃæÏò¶ÔÏó֮ǰ¡£ÎÒÃÇÏÈ°ÑÕâЩ¹²ÐÔ¸ø½éÉÜÍê¡£Ò²¾ÍÊÇ˵ÔÚ½éÉÜÃæÏò¶ÔÏó֮ǰ£¬ËùÓеÄÎÄÕ¶¼ÊÇCC++Öж¼ÄÜʹÓõġ£´ÓÕâµãÉÏÀ´¿´£¬ÏÖÔÚÕý¼«Á¦·Ü¶·ÓÚC++Õ½ÏßÉϵijõѧÕß»¹ÊǺÜÓÐÓô¦µÄ¡£
±¾Æª¼ ......
²Ù×÷º¯Êý,ËùÔÚº¯Êý¿âΪstring.h¡¢mem.h
mem…²Ù×÷´æÖüÊý×é
void *memccpy(void *destin,void *source,unsigned char ch,unsigned n)
void *memchr(void *s,char ch,unsigned n)
void *memcmp(void *s1,void *s2,unsigned n)
int memicmp(void *s1,void *s2,unsigned n)
void *memmove(void *destin ......
developerWorks Öйú > Linux > Óà C99 ½øÐпª·ÅÔ´´úÂëµÄ¿ª·¢ÄúµÄ C ´úÂë·ûºÏ±ê×¼Â𣿠ÎĵµÑ¡Ïî ´òÓ¡±¾Ò³ ½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ ¼¶±ð£º ³õ¼¶ Peter Seebach (developerworks@seebs.plethora.net), ×ÔÓÉ×÷¼Ò 2004 Äê 4 Ô 01 ÈÕ C99 ÊÇʲô£¿ËÐèÒªËü£¿Ëü¿ÉÓÃÁËÂð£¿Poter Seebach ÌÖÂÛÁË ISO C ±ê×¼µÄ 1999 ÄêÐÞ¶©°æ ......