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

[C] ±àÒëµÄѧϰºÍʵ¼ùÈÕÖ¾Îå[¿¼ÊÔ¹éÀ´»°ÕýÔò]

 µ±Ï¶¨¾öÐÄÈ¥×öÒ»¼þÊÂÇéµÄʱºò,¾ÍûÓÐʲô¿ÉÒÔ×èµ²ÎÒ£¡Æ©Èçȥ˯¾õ--! from ¡¶¾õÖ÷ÓA·
ÁîÎÒìþìý²»°²µÄ¸ßÊýѧλ֤¿¼ÊÔ¹ýÈ¥ÁË£¬½á¹û»¹ÊÇÂúÒâµÄ¡£ËäÈ»»¨ÁË3ÖܵÄʱ¼äÈ¥×¼±¸¸´Ï°Êýѧ£¬µ«ÊÇÎÒÈ´·¢ÏÖ£¬ÕæÕýȥѧϰµÄʱºòÖ»ÓÐ×îºóÄÇÁ½Ì죬ÒÔÍùµÄʱ¼äÈ«ÊÇÀ˷ѵôÁË¡£ËìÃ÷
°×£¬ÎªÊ²Ã´Í¬Ò»ÖÖ»·¾³ÏµÄÈË£¬ÓеijÉÁËÌì²Å£¬ÓеÄÂÙΪƽӹ¡£
ÖÕÓÚ¿ÉÒԱȽϷÅÐĵļÌÐø±àÒëÁË¡£¡¶±àÒëÔ­Àí¡·¿´µ½Á˵ÚÈýÕ£¬´Ê·¨·ÖÎö£¬Ä¿Ç°ÐèÒªÖµµÃ×¢ÒâµÄÓ¦¸ÃÊÇÕýÔò±í´ïʽ£¨Õâ¸ö°æ±¾µÄÊéÉÏ·­ÒëΪÕý¹æ±í´ïʽ£¬ÄѵÀ±ðµÄ±í´ïʽ¶¼²»Õý¹æô£¿£©Óм¸¸ö·ÖÎö³öÀ´µÄÒªµã£º
1¡¢ÎÄ·¨ºÍÕýÔò±í´ïʽºÏÆðÀ´¿ÉÒÔ±íʾһ¶ÎÓïÑԵĹæÔò£¬ÆäÖÐÎÄ·¨ÓÃÀ´±íʾµÄÓï·¨£¬¶øÕýÔò±íʾµÄ´Ê·¨¡£Ò²¾ÍÊÇ˵ÎÄ·¨µÄ×îСµ¥Î»ÊÇ´Ê£¬ÕýÔòµÄ×îСµ¥Î»ÊÇ×Ö¡£ÕâÑù¿ÉÒÔÓÐЧµØ°Ñ´Ê·¨ºÍÓï·¨·Ö±ð¿ªÀ´¡£
2¡¢ÕýÔòºÍÎÄ·¨Ò²²»ÊÇÍòÄܵġ£ÊéÖÐ˵ÕýÔò²»ÄÜ´¦ÀíǶÌ×»ò¾ùºâµÄ½á¹¹£¬¾ÙµÃÀý×ÓÊÇÅä¶ÔµÄÀ¨ºÅ¡£ÎÒÏëµÄ¾ßÌåÀý×ÓÀýÊÇhtmlµÄ±êÇ©ÀýÈçб
Ìå<i>something</i>Õâ¸ö±êÇ©Èç¹û¶¨ÒåΪ±êʶtagµÄ»°£¬ÀïÃæµÄsomethingÒ²¿ÉÄÜÊÇtag£¬ÕâÑù¾Íͬ¼¶Ç¶
Ì×£¬ÕýÔòÊDz»Äܱí´ïµÄ£¨ÕýÔòÖ»ÄÜǶÌ×ÒÔÇ°¶¨ÒåµÄ±êʶ£©¡£¶øÎÄ·¨¾ÍûÓÐÕâ¸öÒªÇ󣬹ÊÎÄ·¨¿ÉÒÔ±íʾ¡£»¹ÓÐÒ»¸öºÜÒÉ»óµÄÊÇÊéÖÐ˵
Öظ´µÄ·ûºÅ´®²»ÄÜÓÃÕýÔò£¬ÀýÈ缯ºÏA{wcw|wÊÇaºÍb×é³ÉµÄ´®}£¬Õâ¸öÒ²²»ÄÜÓÃÎÄ·¨¡£µ«ÊÇÎÒÏëÈç¹ûÕâÑù¶¨Ò壺
  w -> (a|b)*
     A -> wcw
Ò²Ó¦¸ÃûÎÊÌâ°¡¡£²»¹ýA±íʾµÄÊÇwcw¶ø²»ÊǼ¯ºÏ{wcw}£¬ÕâÑùÓÐʲôÎÊÌâÄØ£¿ÔÝʱ»¹Ã»ÏëÃ÷°×£¬´ý¸ßÈËÖ¸µã¡£
Õâ¿éÄÚÈÝÊéÉÏдµÄÕæÏñÀëÉ¢Êýѧ¡£¡£(»¹ºÃÎÒǷȱµÄÊǽâÊýѧÌâµÄ¼¼ÇÉ
£¬¶ø¸÷ÖÖ¶¨ÒåºÍÆäÒâÒ廹ÊDZȽÏÃ÷°×µÄ)
»¹ÓÐÐèҪעÒâµÄÊǼǺŵĶþÔª×é±íʾ·½·¨
<¼ÇºÅÃû£¬¼ÇºÅÊôÐÔ>Õâ¸öÔÚ±àÒëÆ÷¼Ç¼´ÊµÄʱºòÓõ½¡£Ë«»º³åÇø£¬¾ÍÊDZàÒëÆ÷¶ÁÈëÔ´ÎļþµÄʱºòÿ´Î¶ÁÈëN¸ö×Ö·û£¬·Åµ½Êý×éµÄÇ°°ë²¿·Ö£¬´¦ÀíÍêÖ®
ºóÔÙ¶ÁÈëN¸÷·ÅÈëºó°ë£¬´¦ÀíÍêºó°ëÔÙ¶ÁÈë·Åµ½Ç°°ë¡£ÕâÑù×öµÄÓÃ;ÊÇÔÚ´¦Àíµ½µÚN¸ö×Ö·ûʱ£¬Õâ¸ö´Ê»¹Ã»½áÊø£¬±ØÐëÒª¶ÁÈëºóÐøµÄ²¿·Ö£¬µ«ÊÇÈç¹û½öÓÐÒ»¸ö»º³åµÄ
»°£¬»á°Ñ´®¸²¸Çµô£¬ÓÚÊÇÐèҪ˫»º³å¡£
ÉÏƪÈÕ־дµÃ»úÖƺͲßÂԵķÖÀ루ÓïÑÔ¹æÔòºÍ´¦ÀíÓïÑÔ¹æÔòµÄ¹ý³Ì·ÖÀ룩ºóÀ´ÏëÁËÏÂyaccºÍlex²»¾ÍÊÇ×öµÄÕâЩÊÂÇéô¡£ºÃµÄ¹¤¾ß
¹ûÈ»Ô̺¬×ÅÉîºñµÄÕÜÀí°¢¡£¡£
»¹ÓÐÒ»±¾¡¶CÓïÑÔ±ê×¼ÓëʵÏÖ¡·Ò²¿´Á˲»ÉÙ£¬Ö÷ÒªÊǽ²²Ù×÷ϵͳ
ºÍC³ÌÐòµÄ½»»¥¹ý³Ì£¬ÊôÓڱȽÏÓ²µÄ¶«Î÷£¬ÒÔºóÈíµÄºÍÓ²µÄÂÖÁ÷дÈÕÖ¾°É¡£
ps:Ã÷Ìì¾ÍÒ


Ïà¹ØÎĵµ£º

£¨×ª£©ÓÃVIM±àдC/C++³ÌÐò

ÓÃVIM±àдC/C++³ÌÐò£¨×ªÔØ£©
ÓÃVIM±àдC/C++³ÌÐò
ViÊÇUnixÏÂ×î³£ÓõÄÎı¾±à¼­Æ÷¡£VIM£¨Vi IMproved£©ÔòÊÇËüµÄÔöÇ¿°æ¡£ÓÐÈ˳£³£ÄÃVIMºÍemacs±È½Ï£¬VIM¾¡¹Ü²»ÏóemacsÄÇÑùÓÐÄÇô¶àµÄ¹¦ÄÜ£¬µ«ÊDZÈemacs¸ü·½±ã¡¢ºÃÓá£ÓùýemacsµÄÈ˿϶¨»áΪemacsµÄһЩ¿ì½Ý¼ü¸Ðµ½·³ÄÕ£¬ÓÐʱºòÓÃÕæÏ£Íû×Ô¼ºÓаËÖ»ÊÖ¡£VIMµÄѧϰÇúÏßÒ²²»ÏóemacsÄ ......

C/C++ ÄÚ´æ¹ÜÀí Heap vs Stack

 
תע:
½ñÌìÓÐÍøÓÑÎʵ½Õâ¸öÎÊÌâ,ÓÚÊÇÔÚÍøÉÏËÑË÷ÁËÒ»ÏÂ,תÌùÕâ´Ë.
ÏàËƵÄÌ«¶àÁË,³ö´¦²»Ïê.Ôڴ˸Ðлԭ×÷Õß¾«²Ê½²½â.
Ò»¡¢Ô¤±¸ÖªÊ¶—³ÌÐòµÄÄÚ´æ·ÖÅä
Ò»¸öÓÉc/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æ·ÖΪÒÔϼ¸¸ö²¿·Ö
1¡¢Õ»Çø£¨stack£©— ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å £¬´æ·Åº¯ÊýµÄ²ÎÊýÖµ£¬¾Ö²¿±äÁ¿µÄÖµµÈ¡£Æä²Ù×÷·½Ê½Àà ......

C/C++ÖÐÖ¸Õë¼Ó 1 µÄÎÊÌâ

 
ÏÈÓñ´¶ûµÄÒ»µÀ±ÊÊÔÌâ¼òÒªµÄ˵Ã÷һϰɣº
¡¾Ì⡿˵Ã÷ÒÔϳÌÐò¡£
#include
int main(void)
{
unsigned int a[3] = {0x01020304, 0x05060708, 0x090a0b0c};
unsigned int *p = (unsigned int *)((int)a +1);¢Ù
printf("%x\n", *p);
return 0;
}
¡¾ÌâÄ¿½âÎö¡¿
Õâ¶Î³ÌÐòµÄÊä³ö½á¹ûÓ¦ ......

extern "C"

 ¡¡extern "C" °üº¬Ë«Öغ¬Ò壬´Ó×ÖÃæÉϼ´¿ÉµÃµ½£ºÊ×ÏÈ£¬±»ËüÐÞÊεÄÄ¿±êÊÇ“extern”µÄ£»Æä´Î£¬±»ËüÐÞÊεÄÄ¿±êÊÇ“C”µÄ¡£ÈÃÎÒÃÇÀ´Ïêϸ½â¶ÁÕâÁ½Öغ¬Òå¡£
¡¡¡¡£¨1£© ±»extern "C"ÏÞ¶¨µÄº¯Êý»ò±äÁ¿ÊÇexternÀàÐ͵ģ»
¡¡¡¡externÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿É¼ûÐÔ£©µÄ¹Ø¼ü×Ö£¬¸Ã¹Ø¼ü× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ