cµÄ¹ØÓÚÊý×é³õʼ»¯ ºÍ memsetÓ÷¨
½ñÌìΪÁ˳¹µ×¸ã¶¨Ò»¸ö¹ØÓÚcÖÐÊý×é³õʼ»¯ºÍÉùÃ÷²»Í¬Çé¿öÏ£¬±ÈÈçÖ»ÉùÃ÷Ò»¸öÊý×échar str[20];ÄÇôÕâstrÀïÃæÊÇʲôÄÚÈÝÄØ£¿ÎÒÓÃvc6++£¬debugÏ¿´µ½¶¼ÊÇ-56¶öascÂ룬ºóÀ´Çë½ÌÁËÒ»¸ö»ªÎªµÄ´óÅ££¬Ëû˵ °´ÕÕÀíÂÛÀ´ËµÀïÃæµÄÄÚÈݶ¼ÊÇÓпÉÄܵģ¬ÕâºÍ½Ð×ö“ÔàÄÚ´æ”»òÕß½Ð×ö“Ò°Êý×锡£ºÃÁ˵ÚÒ»¸öÎÊÌâ¸ã¶®ÁË¡£
µÚ¶þ¸öÎÊÌâ memsetµÄÎÊÌ⣬֮ǰÔÚÍò³¼½âÎöfastÐÒéµÄʱºò£¬ÒòΪÊǸÕÈëÃÅC£¬±¡ºÉÀÏ´ó¸øÎÒ˵һ°ãÉùÃ÷ÁËÊý×éºð¶¼ÓÃmemsetһϡ£µ±Ê±²»ÊǺÜÀí½â£¬µ«ÊÇÏÖÔÚÕâ¾ä»°ÖªµÀÁË¡£
¾ÙÀýһϣº
±ÈÈç char str[20];
¶ÔÓÚstrµÄÁ¬Ðø20¸öµ¥Ôª¶¼ÊÇËæÒâµÄÖµ
char str[20] = "Hello World!";
Õâ¸öʱºò¶ÔÓÚstr£¬Ç°ÃæµÄ×Ö·ûÊÇ Hello World ½ô½Ó×ÅÊÇ'\0'£»Ò²¾ÍÊÇ˵str¾¡¹ÜºóÃæûÓõ½µÄÄÚ´æµ¥ÔªÒ²ÊÇ0ÁË£¬²»ÊÇËæÒâÖµ
Èç¹û memset(str, 0, sizeof(str));
ÄÇôÕâ¾ä»°Ò²ÊÇ°ÑstrµÄÇ°sizeof(str)¸öµ¥Ôª¶¼¸³Öµ¸ø0
Èç¹ûÊÇmemset(str, 1, 10)
ÄÇôÕâ¾ä»°ÊÇ°ÑstrµÄÇ°10¸öµ¥Ôª¶¼¸³Öµ¸ø1ÁË£¬ÆäÓàµÄ»¹ÊÇ ËæÒâÖµ
¼Ç¼һÏ£¡
Ïà¹ØÎĵµ£º
CentOs5°²×°apacheµÄʱºò
#./configure
(ÓÚ¼ì²éϵͳÊÇ·ñÓбàÒëʱËùÐèµÄ¿â£¬ÒÔ¼°¿âµÄ°æ±¾ÊÇ·ñÂú×ã±àÒëµÄÐèÒªµÈ°²×°ËùÐèÒªµÄϵͳÐÅÏ¢¡£ÎªËæºóµÄ±àÒ빤×÷×ö×¼±¸¡£)
Ìáʾ´íÎóÈçÏÂ:£¨Ã»ÓÐGCC±àÒëÆ÷»·¾³£©
checking build system type... i686-pc-linux-gnu
checking host system type.. ......
ÔÚÕ⼸ÌìµÄ¹¤×÷¹ý³ÌÖУ¬ÐèҪʵÏÖPHPÔÚ·þÎñÆ÷¶ËÄÜÓëÆäËû³ÌÐòͨÐÅ¡£ºÍÀϺÎÁ©ÈËÑо¿ÁË°ëÌ죬ÖÕÓÚ´óÖÂŪ³öÁËÒ»¸öÓÃWINDOWSµÄÃüÃû¹ÜµÀͨÐŵķ½·¨¡£
Óм¸µãÐèҪעÒâµÄ£º
PHP·þÎñÆ÷¶ËÎÒÃÇÿ´Î¶¼ÊÇÖØйҽÓÃüÃû¹ÜµÀ¡££¨ÕâÑùд£¬PHP¶Ë´úÂëÁ¿¼«ÆäÉÙ£¬¶øÇÒÒ²ºÜ·½±ã¡££©
ÄÇôÎÒÃÇÓÃC/C++дµÄÃüÃû¹ÜµÀ·þÎñÆ÷ÔòÐèҪÿ´ÎͨÐŶ¼´´½¨Ò»´Î¹ ......
µÚÒ»Õ CÓïÑÔ¸ÅÊö
²»ÒªÌÖÂÛΪʲôҪѧϰCÓïÑÔµÄÎÊÌ⣬CÓïÑÔ×ÔÓÐËü×Ô¼º¶ÀÌصÄÆøÏ¢£¡
Ò»¡¢CÓïÑÔµÄÀúÊ·
CÓïÑÔÊÇ1972ÄêÖÁ1973Äê¼ä£¬ÔÚÃÀ¹úµÄ±´¶ûʵÑéÊÒ( Bell Laboratories )ÓÉDennis M. RitchieÒ»¸öÈË¿ª·¢³öÀ´µÄÒ»ÖÖÏà¶Ô±È½ÏеijÌÐòÉè¼ÆÓïÑÔ¡£
1960Ä꣬³öÏÖµÄALGOL 60 (Ò²³Æ A ÓïÑ ......
ÍøÉÏÓкöàƪÎÄÕ½²ÈçºÎÅäÖÃ.vimrcÎļþÀ´ÊµÏÖVIMÀïÒ»¼ü±àÒ룬¿´ÁËһϱȽϸ´ÔÓ¡£ÎÒÒ»°ãûÓÐʲô´óµÄ³ÌÐòҪд£¬Ò»°ãµÄС³ÌÐòµ¥¸öCÎļþ¾Í¸ãµàÁË£¬ËùÒÔ¼ò»¯ÁËÒ»ÏÂÍøÉϵÄÅäÖã¬ÔÚ.vimrcÀï¼ÓÉÏÁ½ÐоÍÂú×ãÎÒµÄÐèÇóÁË¡£
set makeprg=gcc\ -Wall\ -o\ %<\ %
map <F7> :make<CR ......
As is Known to us,the function Main is the entry point of all programs.Therefore, we are usually neglecting all that we don't do,which makes us not understanding it more clearly.Now there is a sample arm program which will provide something that opration system usually do.
asm:
&nb ......