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

VIM+GDB linux c/c++ µÄ±à³ÌÀûÆ÷

Ô­ÎÄ£ºhttp://blog.csdn.net/jackyvan/archive/2010/01/15/5193693.aspx
ÆäʵVIMÒ²ÄܰѱàÒë µ÷ÊÔ¼¯³ÉÔÚÒ»Æð£¬ÏñÊÇÒ»¸öIDEÒ»Ñù¡£
Ê×ÏÈÏÖÔÚVIMµÄÔ´Â룬ÒòΪҪ¼¯³Éµ÷ÊÔ»·¾³µÄ»°ÐèÒªÖØбàÒëVIM²ÅÐУ¬ËùÒÔÎÒÃDz»ÈçÖØа²×°Ò»¸ö¡£
VIMµÄÏÖÔÚµØÖ·£º
http://www.vim.org/sources.php
È»ºóÏÂÔØVIMGDB£¬ÕâÊÇvimµÄ¼¯³Éµ÷ÊÔ»·¾³µÄÒ»¸öÖØÒª²å¼þ³ÌÐò¡£
µØÖ·£ºhttp://sourceforge.net/projects/clewn/files/vimGdb/ 
,Ñ¡Ôñ¶ÔÓ¦µÄVIM°æ±¾ÏÂÔØ¡£
°ÑÏÂÔØÏÂÀ´µÄÎļþ¶¼·Åµ½ ~/install/ÖÐ
È»ºó£º
cd ~/install/
tar xjf vim-7.2.tar.bz2
tar xzf vimgdb72-1.14.tar.gz
patch -d vim72 --backup -p0 < vimgdb/vim72.diff
ÕâÑù¾Í½âѹ³övimºÍvimgdb£¬²¢¶ÔvimµÄconfigureÎļþ×Ô¶¯×öÁ˵÷Õû
½ÓÏÂÀ´£º
cd ~/install/vim72
make
make install
¾Í×°ºÃvimÁË¡£
È»ºó£º
cd ~/install/vimgdb
mkdir ~/.vim
tar zxf vimgdb_runtime.tgz -C ~/.vim/
ÕâÑù¾Í×°ºÃÁË£¬½ÓÏÂÀ´Æô¶¯vim
ÏÈ°ÑvimgdbµÄ°ïÖúµ¼½øÈ¥
:helptags ~/.vim/doc
ÕâÑù¾Í¿ÉÒÔ
:help vimgdb
À´¿´vimgdbµÄ°ïÖúÁË
ÕâÑù ÎÒÃÇÏÈ´ò¿ªÒ»¸öc³ÌÐò
²¢ÇÒΪÕâ¸ö³ÌÐòдºÃÒ»¸öMakefileÎļþ
ÓÃ
:make
À´±àÒëÕâ¸öÔ´Âë¡£
¸ù¾ÝÉú³ÉµÄ±¨´íÐÅÏ¢ ÎÒÃÇ¿ÉÒÔÀ´Ð޸ijÌÐò£¬Çûسµ»áÌøתµ½µÚÒ»¸ö´íÎó£¬ÓÃcnext
»áµ½ÏÂÒ»¸ö´íÎó£¬cprevious
µ½ÉÏÒ»¸ö´íÎó£¬cc n
Ìøµ½µÚn¸ö´íÎó£¬cc
ÏÔʾµ±Ç°´íÎóµÄÏêϸÐÅÏ¢
½ÓÏÂÀ´ÎÒÃÇÒªÊÔÒ»ÏÂvimgdbµÄµ÷ÊÔ¹¦ÄÜÁË¡£
Ê×ÏÈ£º
:run macros/gdb_mappings.vim
À´¼ÓÔØvimgdbÓ³ÉäµÄ¼ü
Õâ¸öʱºòÎÒÃÇ¿ÉÒÔÓÃ
:help gdb-mapping
À´²é¿´¼ÓÔؼüµÄÓ÷¨
ÓÃ<F7>
¿ÉÒÔÆôÓÃ/¹Ø±Õ¼ÓÔصļü
ÏÖÔÚ£¬°´¿Õ¸ñ¼ü£¬¾Í»áÔÚµ±Ç°´°¿ÚÏ·½´ò¿ªÒ»¸öС´°¿Ú£¬Õâ¾ÍÊÇvimgdbµÄÃüÁî´°¿Ú£¬¿ÉÒÔÔÚÀïÃæÊäÈëgdbÃüÁî¡£ÏÖÔÚ£¬ÎÒÃÇÔÚÕâ¸ö´°¿ÚÖÐÊäÈë”gdb
“£¬°´»Ø³µºó£¬command-line´°¿Ú×Ô¶¯¹Ø±Õ£¬¶øÔÚµ±Ç°´°¿ÚÉÏ·½ÓÖ´ò¿ªÒ»¸ö´°¿Ú£¬Õâ¸ö´°¿ÚÊÇgdbÊä³ö´°¿Ú¡£ÏÖÔÚvimµÄ´°¿Ú²¼¾ÖÈçÏÂ(ÎÒÓÖ°´¿Õ¸ñ´ò¿ªÁËcommand-line´°¿Ú)
È»ºóÔÚÕâ¸ö´°¿ÚÀï
file test
´ò¿ªÒªµ÷ÊԵijÌÐò
È»ºóÔÚÔ´ÂëÎļþÀï¿ÉÒÔCTRL+B
À´ÉèÖöϵ㣬R
À´ÔËÐгÌÐò£¬S
µ¥²½Ö´ÐР ÆäËûÃüÁî¿ÉÒÔÓÃ:help gdb-mapping
À´²é¿´
ÎÒÃÇ¿ÉÒÔÓÃ
:bel 20vsplit gdb-variables
ÔÚÓÒ²à´ò¿ªÒ»¸öС´°¿ÚÀ´ÏÔʾҪ¸ú×ٵıäÁ¿µÄÖµ
ÔÚÔ´ÂëÎļþÀÓà "v
" £¨±íʾvisualģʽ£© Ñ¡¶¨Òª¸ú×ٵıäÁ¿£¬È»ºóCTRL+P
°Ñ±äÁ¿¼Óµ½ÓÒ±ß


Ïà¹ØÎĵµ£º

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
         &n ......

¹ØÓÚMysqlÊÇ·ñÂú×ãC2¼¶µÄÌÖÂÛ


====================================================
Òý×Ô£ºhttp://blog.sina.com.cn/s/blog_538a9d1901008f9g.html
ʲôÊÇC2¼¶°²È«ÐÔ£¿°²È«ÐԵķÖÀàÊÇÔõÑùµÄ£¿(2008-01-30 17:04:39)
  
DÀࣺ×îµÍ±£»¤£¬±£Áô¸ø²»ÄÜͨ¹ý¸ü¸ß¼¶±ð¼ì²éµÄϵͳ
C1£º½÷É÷±£»¤£¬ÒªÇóÓлùÓÚÓû§¼¶±ðµÄ¿ØÖÆÀ´±£»¤Êý¾Ý£¬Ö÷Òª·ÀÖ ......

ÔÚѧϰCºóÊÇ·ñ»¹ÒªÑ§Ï°C++£¿


×÷ÕߣºÍõæ©æ©,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
ÔÚǶÈëʽ¿ª·¢ÖУ¬×÷Ϊµ×²ã¿ª·¢Õߣ¬¸ü¿´ÖصÄÊÇCÓïÑԵıà³ÌÄÜÁ¦£¬µ«×÷ΪӦÓóÌÐòµÄ¿ª·¢Õߣ¬ÎÒÏëѧϰC++»¹ÊÇÓбØÒªµÄ¡£ÄãÖ»ÓÐÔÚÁ˽âÁË£Ã++µÄÌØÐÔ£¬´Ó±¾ÖÊÉÏ¿´µ½ËüÓëCµÄÇø±ð²ÅÄܼᶨÄãÈÏʶѧϰËüµÄ¾öÐÄ¡£ÎÒ²»ÊÇר¼Ò£¬µ«ÊÇ´ÓÎÒѧϰµÄÀú³ÌÉÏÀ´¿´£¬Ñ§Ï°£Ã£«£«»¹ÊÇÓÐÐèÒªµÄ£¬²»ÂÛÄã×ö£Ñ£Ô ......

C\C++Ïà¹ØÎÊÌâÕûÀí£¨1£©

Ëæ»úÉú³ÉÕûÊý£¬È»ºóËã³öÕý¸ºÁã
void getrand(int *a, int m)
{
    int i;
    srand(time(NULL));
    for (i=0; i<m; i++)
    {
        a = rand()-rand();
    }
}
int main(int argc, char* argv[])
{
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ