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

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ÁË£¬ÆäÓàµÄ»¹ÊÇ ËæÒâÖµ
¼Ç¼һÏ£¡


Ïà¹ØÎĵµ£º

C µÄ¿ªÊ¼

    C µÄ¿ªÊ¼
 
    2010Äê2ÔÂ10ÈÕ£¬
    ¿ªÊ¼ÔĶÁ¼ÒÀïÓйØ"CÓïÑÔ"µÄ¸÷ÖÖ×ÊÁÏ¡£
    ʹÓà TurboC2.0£¬Å¼¶û¿ÉÄÜÒ²»áÓõ½ Microsoft Visual C++ 6.0¡£ ......

ϵͳÉè¼Æ B/S½á¹¹ºÍC/S½á¹¹

B/S½á¹¹£¨Browser/Server½á¹¹£©½á¹¹¼´ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹¡£ËüÊÇËæ×ÅInternet¼¼ÊõµÄÐËÆð£¬¶ÔC/S½á¹¹µÄÒ»Öֱ仯»òÕ߸ĽøµÄ½á¹¹¡£ÔÚÕâÖֽṹÏ£¬Óû§¹¤×÷½çÃæÊÇͨ¹ýWWWä¯ÀÀÆ÷À´ÊµÏÖ£¬¼«ÉÙ²¿·ÖÊÂÎñÂß¼­ÔÚǰ¶Ë£¨Browser£©ÊµÏÖ£¬µ«ÊÇÖ÷ÒªÊÂÎñÂß¼­ÔÚ·þÎñÆ÷¶Ë£¨Server£©ÊµÏÖ£¬ÐγÉËùνÈý²ã3-tier½á¹¹¡£ÕâÑù¾Í´ó´ó¼ò»¯Á˿ͻ§¶ËµçÄÔÔØ ......

C ÓïÑÔ¸ÅÊö

µÚÒ»Õ  CÓïÑÔ¸ÅÊö
 
 
²»ÒªÌÖÂÛΪʲôҪѧϰCÓïÑÔµÄÎÊÌ⣬CÓïÑÔ×ÔÓÐËü×Ô¼º¶ÀÌØµÄÆøÏ¢£¡
 
Ò»¡¢CÓïÑÔµÄÀúÊ·
 
CÓïÑÔÊÇ1972ÄêÖÁ1973Äê¼ä£¬ÔÚÃÀ¹úµÄ±´¶ûʵÑéÊÒ( Bell Laboratories )ÓÉDennis M. RitchieÒ»¸öÈË¿ª·¢³öÀ´µÄÒ»ÖÖÏà¶Ô±È½ÏеijÌÐòÉè¼ÆÓïÑÔ¡£
1960Ä꣬³öÏÖµÄALGOL 60 (Ò²³Æ A ÓïÑ ......

C#ÖÐC/C++³ÌÐòÔ±×¢ÒâÎÊÌâ

 1¡¢C/C++³ÌÐòÔ±Çë×¢Ò⣬²»ÄÜÔÚcaseÓï¾ä²»Îª¿Õʱ“ÏòÏÂÖ´ÐД¡£
¡¡¡¡2¡¢ÖµÀàÐͺÍÒýÓÃÀàÐÍÖ®¼äµÄÇø±ð£ºC#µÄ»ù±¾ÀàÐÍ(int£¬charµÈ)¶¼ÊÇÖµÀàÐÍ£¬ÊÇÔÚÕ»Öд´½¨µÄ¡£¶ø¶ÔÏóÊÇÒýÓÃÀàÐÍ£¬´´½¨ÓÚ¶ÑÖУ¬ÐèҪʹÓùؼü×Önew¡£
¡¡¡¡3¡¢ÔÚC#ÖÐͨ¹ýʵÀý·ÃÎʾ²Ì¬·½·¨»ò³ÉÔ±±äÁ¿ÊDz»ºÏ·¨µÄ£¬»áÉú³É±àÒëÆ÷´íÎó¡£µ«ÊÇÎÒÃÇ¿ÉÒÔ ......

Ç×ÃܽӴ¥C¿É±ä²ÎÊýº¯Êý

Ç×ÃܽӴ¥C¿É±ä²ÎÊýº¯Êý
 ±¾ÎÄ´Ó³ÌÐòԱʵ¼ùµÄ½Ç¶ÈÀ´ÆÊÎöC¿É±ä²ÎÊýº¯ÊýÔÚIntel 32λCPUÉϵÄʵÏÖÓëÔ­Àí
×÷ÕߣºÁÖº£·ã
ÍøÖ·:http://blog.csdn.net/linyt/archive/2008/04/02/2243605.aspx
[*]»¶Ó­×ªÔØ£¬µ«ÇëÍêÕû×ªÔØ²¢×¢Ã÷×÷ÕßÒÔ¼°µØÖ·£¬ÇëÎðÓÃÓÚÈκÎÉÌÒµÓÃ;¡£
¿É±ä²ÎÊýº¯ÊýµÄʵÏÖ
    Èç¹û˵CÓïÑÔ¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ