ÎÒcopyÁËÒ»²¿·Ö±ðÈ˵ijÌÐò£¬ÔÚ¿ª·¢°åÉÏÔËÐÐÒ»¶Îʱ¼äºó·¢ÏÖÓÐÄÚ´æ鶵ÄÌáʾ£¬Õâ¸ö¸ÃÔõô°ì£¬Ò²Ã»µ÷ÊÔ¹¤¾ß£¬Ö»ÄܼӴòÓ¡ÐÅÏ¢¡£
ÆäÖÐmalloc¶¯Ì¬²úÉúÁ´±íÔÚ³ÌÐò½áÊøµÄʱºòÊÍ·Å
¿ÉÒ԰ѳÌÐò·Åµ½pcÉÏÏȵ÷ÊÔ£¬ÔÚpcÉϵ÷ÊÔ¹ýÁË£¬ÔٷŹýÈ¥¡£
ÓкܶàµØ·½±ØÐëµÃºÍ¿ª·¢°åÉÏÐÅÏ¢½»»¥²ÅÐÐ
[Quote=ÒýÓÃÂ¥Ö÷ fenglinqiu µÄ»Ø¸´:]
ÎÒcopyÁËÒ»²¿·Ö±ðÈ˵ijÌÐò£¬ÔÚ¿ª·¢°åÉÏÔËÐÐÒ»¶Îʱ¼äºó·¢ÏÖÓÐÄÚ´æ鶵ÄÌáʾ£¬Õâ¸ö¸ÃÔõô°ì£¬Ò²Ã»µ÷ÊÔ¹¤¾ß£¬Ö»ÄܼӴòÓ¡ÐÅÏ¢¡£
ÆäÖÐmalloc¶¯Ì¬²úÉúÁ´±íÔÚ³ÌÐò½áÊøµÄʱºòÊÍ·Å
[/Quote]
¶¯Ì¬ÉêÇë/ÊÍ·ÅÄÚ´æµÄµØ·½¼Ó´òÓ¡£¬ÉèÖÃÒ»¸öÈ«¾Ö±äÁ¿£¬Ã¿´Îmalloc½«±äÁ¿++£¬Ã¿´Îfree½«±äÁ¿--£¬¿´¿´ÊÇ·ñ±äÁ¿Îª0±ãÖªµÀÊÇ·ñ×Ô¼ºÍü¼ÇÊÍ·ÅÁË¡£
ÁíÍ⶯̬ÉêÇëÄÚ´æµÄ£¬ÎÒÏ°¹ß·ÅÔÚÒ»¸öÈ«¾Ö½á¹¹Àµ±³ÌÐò½áÊøʱÎÒ»áÖðÒ»¼ì²é£¬¿´¿´ÊÇ·ñ¶¼Õý³£ÊÍ·ÅÁË¡£
Ò»²½Ò»²½¸ú×Ù°É£¬¶à¿´¿´Ö¸Õ룬ÄÚ´æÏà¹ØµÄµØ·½£¬ÏÈ´ó·½Ïò¸ú×Ù£¬È»ºóÔÙÖð½¥ËõС·¶Î§ß£¬³ÌÐò²»¶àµÄ»°£¬Ò²¿ÉÒÔÌù³öÀ´´ó»ï¿´Ï¡£
´úÂëreviewһϣ¬Ö÷Òª¿´ÉêÇëÄÚ´æºÍÊÍ·ÅÄÚ´æµÄµØ·½¾ÍÐÐÁË£¬¼ÈÈ»ÒѾ֪µÀ½á¹û£¬¿Ï¶¨¿ÉÒÔ¿´³öÀ´µÄ¡£
ÄǾͶà¼Óµã´òÓ¡ÐÅÏ¢°É
ÓúêÖØж¨ÒåmallocºÍfree¡£¼Ç¼ÿ´ÎmallocºÍfreeµÄµØÖ·£¬È»ºó¿´Ê²Ã´µØ·½Ð¹Â¶£¬Ò²¿ÉÒÔmallocʱÔÚ×îºó¶à·ÖÅ伸¸ö×Ö½Ú£¬¼Ç¼һ¸ö±ê¼Ç£¬freeʱ¼ì²â±ê¼Ç±ÜÃâÔ½½ç·ÃÎÊ¡£
Ïà¹ØÎÊ´ð£º
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊÊ°¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......
ÏëÖªµÀÿÌõÖ¸Áî»òº¯ÊýµÄϵͳÏûºÄ¡£±ÈÈçϵͳִÐÐint a=0£»µÄ¿ªÏúÊǶàÉÙ¡£ÓÐûÓÐÀàËƵÄÎĵµÖ®ÀàµÄ¡£²»ÒªºÍÎÒ˵ÓÃʲôclock()º¯ÊýÀ´²âÊÔ¡£ÎÒÏëÒªÏà¹Ø×ܽáºÃµÄÎĵµ
ÏÈ·´»ã±à,È»ºóÄÃ×ÅcpuµÄÖ¸ÁîÊÖ²á²éÿÌõÖ¸ÁîµÄʱ¼äÖÜÆÚ ......
ÄãÃÇÏÖÔÚ»¹ÔÚÓÃCÂð£¿CÓÐǰ;Âð£¿
Ò»¶¨£¬²¢ÓÀÔ¶¼á³Ö
ÒýÓÃ
Ò»¶¨£¬²¢ÓÀÔ¶¼á³Ö
¶¥
ÓÐÓá£
Â¥Ö÷ºÎ³ö´ËÑÔ
Â¥Ö÷À´c°æÎÊÕâ¸öÎÊÌâÊÇÌß¹ÝÓÃÒâÂð¹þ¹þ
Ô½À´Ô½ÀäÊǿ϶¨µÄ£¬ÍêÈ«ÌÔ̵¹Ò²Ã»ÄÇôÈÝÒ×
c ......
6ÔÂ5ÈÕÏûÏ¢£¬XXÍøÕ¾ÈÕÇ°ÆÀ³öÁË10Ïî´óÊÆÒÑÈ¥µÄ¼ÆËã»ú¼¼Êõ¡£ÆäÖУ¬ÓÐЩ¼¼ÊõÒѾ±»ÌÔÌ£¬ÓÐЩ¼´½«±»ÌÔÌ¡£ÈçÖøÃûµÄCobolÓïÑÔ£¬ÒÔ¼°IBMµÄOS/2ϵͳ¡£
¡¡¡¡ÒÔÏÂΪXXÍøÕ¾ÆÀ³öµÄ±»ÌÔ̵Ä10Ïî¼ÆËã»ú¼¼Êõ£º
¡¡¡¡ ......
¹¤×÷ÄÚÈÝ Ñз¢
×ʸñÒªÇó£º
211ºÍÖصãԺУ±¾¿Æ 3Ä깤×÷¾Ñé
211ºÍÖصãԺУ˶ʿ 1Ä깤×÷¾Ñé
ÆÕͨԺУÔÚ¹¤×÷ÄêÏÞÉϸ÷¼Ó1Äê
ÓÐͨÐÅÏà¹Ø¿ª·¢¾ÑéÕßÓÅÏÈ£¬µ±È»C/C++ »ù´¡ÒªÔúʵ
à ......