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

ÓÃVim´î½¨C/C++¿ª·¢»·¾³

ÀîÈôÀÏʦÔø¾­Ëµ£ºÊÀ½çÉϵijÌÐòÔ±·ÖÈýÖÖ£¬Ò»ÖÖÊÇÓÃEmacs£¬Ò»ÖÖÊÇÓÃVimµÄ£¬ÆäËüµÄ¹éΪµÚÈýÖÖ¡£ÆäÒâÊÇ˵Èç¹ûÒ»¸ö³ÌÐòÔ±Á½Õ߶¼²»ÓõĻ°£¬ÄÇ´óµÖÊDz»ÄÜ
¹éΪÈëÁ÷ÕßÐÐÁеġ£¶ÔʹÓÃC/C++µÄÈËÀ´Ëµ£¬ºÜ¶àÈËϲ»¶Emacs£¬¾Ý˵Óë¶ÔStallmanµÄ³ç°ÝÓë°®Îݼ°ÎÚÓйØ;-)¡¡µ±È»£¬EmacsÓëVimËä
È»ÔÚÎı¾±à¼­·½ÃæµÄÐÔÄÜÊǵȼ۵ģ¬µ«Ê¹ÓÃÆðÀ´Á½Õß»¹ÊÇÓкܴóµÄ²»Í¬£ºVimÊÇΪ³ÌÐòÔ±¶ø¿ª·¢µÄ£¬¹¦ÄÜÇ¿´ó¶øʵÓã»Emacs³ýÁËÎı¾±à¼­Ö®Í⣬×÷Ϊ
UnixϵēµÚÒ»¸öÈ˹¤ÉúÃü”£¬»¹¿ÉÒÔͨ¹ý²å¼þÍê³É¸÷ÖÖ°üÀ¨Ìýmp3£¬·¢Óʼþ£¬ÉõÖÁÖ󿧷ȵIJÙ×÷£¬ËùÒÔ£¬Emacs¸üÏñÊÇÒ»ÖÖ“Éú»î·½Ê½”¡£ÑÔ¹éÕý´«£¬
ÎÒ¸öÈËÊÇÓÃVimµÄ£¬ÔÚ±àдC/C++µÄ³ÌÐòʱ£¬Ö»ÓÃVim×ÔÉíµÄ¹¦ÄÜ»¹ÊDz»Ì«Ë¬µÄ£¬»¹ÐèÒªÆäËüµÄ²å¼þ£¬½«Æä¹¹Ôì³ÉÒ»¸ö±ÈVCˬµÃ¶àµÄIDE¡£ÓÉÓÚÿ¸ö¹¤
¾ß½éÉÜÇå³þ¶¼²»ÊÇÒ»Á½¾ä»°ËµµÃÍêµÄ£¬ÒÔÏÂÖ»Áгö²å¼þµÄÃû³Æ£¬¾ßÌåµÄÄÚÈÝgoogleÖ®¼´¿É;-)ÆäÖÐvim²å¼þ¿ÉÒÔµ½VIMer×ȥµÄwww.vim.org
ÏÂÔØ
Ctags£¬·Çvim²å¼þ¡£CtagsÊÇVim±Ø²»¿ÉÉٵŤ¾ß£¬Ëü¿ÉÒÔ½«C/C++µÄºê¡¢±äÁ¿¡¢º¯Êý¡¢ÀàµÈһϵÁÐÐÅÏ¢ÌáÈ¡³öÀ´£¬ÒÔ·½±ãÇл»¡£Ctags»¹¿ÉÒÔʹÓøüÇ¿´óµÄcscope´úÌæ¡£
Taglist£¬Vim²å¼þ¡£TaglistÊÇÓëctagsµÄÅäºÏµÄvimµÄÇ¿´ó¹¤¾ßÖ®Ò»£¬Æ书ÄÜÊǽ«µ±Ç°bufferµÄËùÓÐÐÅÏ¢×÷³ÉÒ»¸öÁбí·ÅÔÚÅԱߣ¬Ëæʱ¿ÉÒÔÇл»¡£
omnicppcomplete£¬Vim²å¼þ¡£Æ书ÄܹËÃû˼Òå¾ÍÊÇ×Ô¶¯²¹È«¹¤¾ß£¨¿É²»ÊǼòµ¥µÄCtrl+NŶ£©£¬±ÈÈ綨ÒåÁËÒ»¸öÀà½ÐmyClass£¬Éú³ÉÒ»¸öʵÀýmyClass c; ÄÇôÊäÈëc.Ö®ºó¾Í¿ÉÒÔ³öÏÖÒ»¸ö¿ò£¬ÀïÃæÊÇcËùÓеijÉÔ±º¯Êý¡£
csupport£¬Vim²å¼þ¡£ÕâÊÇÒ»¸ö·Ç³£ºÃµÄC/C++ ide£¬ÓÐÁËËüʲô±àÒëÔËÐÐÒ»¼ü¸ã¶¨£¬¶¨ÒåÒ»¸öÀàÒ»¼ü¾Í¿ÉÒÔ¸ø³öÒ»¸öÄ£°å¸ñʽ£¬Ï൱ʵÓá£
clewn£¬
·ÇVim²å¼þ¡£ÆäÓô¦ÊÇÁª½ávimÓëgdb£¨Ã»Ìý˵¹ýgdb£¿google²¹¸ö¿Î°É~£©¡£ÔÚ´ò¿ªclewnµÄʱºò£¬ËüÀûÓÃNetBeans£¬°ÑgVimÓë
gdbÎÞ·ìµØÁª½áÆðÀ´£¬»¹¿ÉÒÔÏñmatlabÒ»Ñù£¬ÔÚµ÷ÊÔµÄʱºò°ÑÊó±ê·ÅÔÚ±äÁ¿ÃûÉÏ£¬¾Í»áÓÐÒ»¸öballon³öÀ´ÏÔʾÕâ¸ö±äÁ¿µÄÖ¸£¬ìÅ°É£¿Ë­ËµÖ»ÓÐ
emacs²ÅÄÜÓëgdb½áºÏµÄºÃ£¿ÁíÍâËüµÄÁíÍâÒ»¸öÌæ´úÆ·ÊÇVimGdb£¬ÕâÊǸöVim²å¼þ¡£
Doxygenkit¡£×¢ÊÍÓëÎĵµºÏ¶þΪһµÄ×îÇ¿¹¤¾ßµ±È»ÊÇDoxygen£¬ÓÐÁËDoxygenkit£¬ÓÃVimдDoxygen¸ñʽһ¼ü¸ã¶¨¡£
ÖÁ´Ë£¬ÎÒ¶¨ÖƵÄVimµÄC/C++IDE¾Í¸ã¶¨ÁË£¬ÓÃÆðÀ´±ÈVCÄǸöÕæÊÇˬ²»Öª¶àÉÙ±¶ÁË¡£³ýÁËÒÔÉϵIJå¼þÍ⣬Vim³£ÓõĻ¹ÓÐVimshell£¬projectµÈ¹¤¾ß£¬¶¼ÓкÜìŵÄЧ¹û£¬Çë¸÷λVIMers ×Ô¼ºÌå»á°É£º£©


Ïà¹ØÎĵµ£º

SQLite C/C++½Ó¿Ú½éÉÜ

ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»Ê¹Óõ½¡£¾¡¹ÜÓÐÕâ ......

¼òÊöCºÍC++³ÌÐòԱѧϰÀú³Ì


¹þ¹þ£¡ÓÐÐÒÔÚijÍøÕ¾·¢ÏÖÕâƪÎÄÕ£¬¶Á°Õ£¬¾õµÃÂùÓеÀÀí£¬·¢À´´ó¼ÒÒ»Æð¹²ÃãÖ®
×ÜÊDZ»Í¬Ñ§ÃÇÎʵ½£¬ÈçºÎѧϰCºÍC++²Å²»Ã£È»£¬²Å²»ÊÇÂÒѧ£¬ÏëÁËһϣ¬ÕâÀï¸ø³öÒ»¸ö×ܵĻظ´¡£
¡¡¡¡Ò»¼ÒÖ®ÑÔ£¬»¶Ó­ÅÄש¹þ¡£
¡¡¡¡1¡¢¿ÉÒÔ¿¼ÂÇÏÈѧϰC.
¡¡¡¡´ó¶àÊýʱºò£¬ÎÒÃÇѧϰÓïÑÔµÄÄ¿µÄ£¬²»ÊÇΪÁ˳ÉΪһ¸öÓïÑÔר¼Ò£¬¶øÊÇÏ£Íû³ÉΪһ¸ö½â¾ ......

c ÓïÑÔÖеÄstatic

1. static ±äÁ¿
¾²Ì¬±äÁ¿µÄÀàÐÍ ËµÃ÷·ûÊÇstatic¡£ ¾²Ì¬±äÁ¿µ±È»ÊÇÊôÓÚ¾²Ì¬´æ´¢·½Ê½£¬µ«ÊÇÊôÓÚ¾²Ì¬´æ´¢·½Ê½µÄÁ¿²»Ò»¶¨¾ÍÊǾ²Ì¬±äÁ¿¡£ ÀýÈçÍⲿ±äÁ¿ËäÊôÓÚ¾²Ì¬ ´æ´¢·½Ê½£¬µ«²»Ò»¶¨ÊǾ²Ì¬±äÁ¿£¬±ØÐëÓÉ static¼ÓÒÔ¶¨Òåºó²ÅÄܳÉΪ¾²Ì¬Íⲿ±äÁ¿£¬»ò³Æ¾²Ì¬È«¾Ö±äÁ¿¡£
2. ¾²Ì¬¾Ö²¿±äÁ¿
¾²Ì¬¾Ö²¿±äÁ¿ÊôÓÚ¾²Ì¬´æ´¢·½Ê½£¬Ëü¾ßÓÐÒÔÏ ......

C/C++ÖеĽṹÌå¶ÔÆëÎÊÌâ(ÄÚ´æ¶ÔÆë)

ÓÉÓÚ³ÌÐòÔËÐÐʱռÓõÄÄÚ´æ¹ý´ó£¬ËùÒÔÏë°ì·¨¸ø³ÌÐòÊÝÉí¡£
ÔÚµ÷ÊÔÖз¢ÏֽṹÌåÕ¼ÓõÄsize¾¹È»ºÍÔ¤ÏëµÄ²»Ò»Ñù£¬Ô­À´……
¿´¿´ÏÂÃæ½²µÄ°É£¬¿Ï¶¨»á²»Í÷´Ë¿´Å¶£¡
1,±ÈÈç:
struct{
short a1;
short a2;
short a3;
}A;
struct{
long a1;
short a2;
}B;
sizeof(A)=6, sizeof(B)=8,Ϊʲô£¿
×¢£ºsizeof(sho ......

C±àÒë»ù´¡

int main(int argc,char *argv[])
argc(argument count):²ÎÊýµÄ¸öÊý£»
argv(argument value):²ÎÊýÖµ
argv[0] :ÎļþÃû
argv[1]£ºµÚÒ»¸ö²ÎÊý£¬argv[2];µÚ¶þ¸ö²ÎÊý£¬ÒÔ´ËÀàÍÆ¡£
±àÒëC
1 µ¥Ô´³ÌÐòµ½¿ÉÖ´ÐгÌÐò
            ±àÒë     & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ