linuxÏÂC/C++IDE±È½Ï——Code::Blocks
תÔØÇë×¢Ã÷³ö´¦£º±à³Ì±Ê¼ÇBLOG
¹¤ÓûÉÆÆäÊ£¬±ØÏÈÀûÆäÆ÷¡£ÓÃÁËÕâô¾ÃµÄlinux£¬ÏÖÔڱȽÏÖ÷Á÷µÄ¼¸¸öC/C++µÄIDE»ù±¾ÒѶ¼ÓùýÁË£¬ÏÖÔÚÀ´¶ÔËûÃÇ×öһϼòµ¥µÄ±È½Ï¡£
1¡¢VIM
Ê×ÏÈҪ˵µÄÊÇVIM¡£ÎÒÈÏΪ£¬VIMÖ»ÊÇÒ»¸ö±à¼Æ÷£¬²»ÄÜËãÊÇIDE¡£Ëä˵VIMÓкܶà²å¼þ£¬ÀýÈç´úÂëÕÛµþ¡¢µÝ½øµÈ£¬¿ÉÒÔ½«VIM×齨³É¼¸ºõÀàËÆÒ»¸öIDE£¬µ«Ê¼ÖÕËü²»ÊÇרÃŵÄIDE£¬ËùÒÔÔÚ¹¦ÄÜÖ§³ÖÉÏ»¹ÊÇÔ¶²»ÈçÄÇЩרÃŵÄIDEÈ磺eclipseºÍcode::blocks£¨Õâ¸öÊDZ¾ÎÄ×îºó½éÉÜÒ²ÊÇÎÒÏëÏò´ó¼ÒÍƼöµÄIDE£©¡£ÓÃVIM+GDBÀ´±àдºÍµ÷ÊÔC++³ÌÐòÊǺܓʹ¿à”µÄÒ»¼þÊ£¬ÓÑÇéÌáʾ£¬Èç¹ûÄã²»ÊÇÒ»Ãûunix
hackerµÄ»°£¬²»ÒªÓÃVIMµ±×÷ÄãµÄC++
IDE¡£²»¹ý£¬VIMÓÐËüµÄºÃ´¦£¬Ëü×÷Ϊһ¸ö±à¼Æ÷£¬µ±Äãͨ¹ýSSHÁ¬½Óµ½Ô¶³Ì·þÎñÆ÷ÉÏ¡¢ÐÞ¸ÄһЩÅäÖÃÎļþ»òÕ߶ԴúÂë½øÐГ΢µ÷”ʱÊǷdz£ÓÐÓõġ£
ÕâÀïÔÙ²¹³ä˵һµã£¬ÎÒËù˵µÄunix
hacher²¢²»ÊÇ´ó¼ÒƽʱÀí½âµÄÆƽâϵͳ¡¢¹¥»÷±ðÈ˵çÄÔµÄÄÇЩÈË£¨ÎÒÈÏΪӦ¸Ã³ÆËûÃÇcracker£©£¬ÎÒÈÏΪµÄhackerÊÇÀàËÆRichard
Stallman¡¢Linus
TorvaldsÕâЩ¼¼ÊõºÜÇ¿¡¢Ï²»¶Í¨¹ý×Ô¼ºË¼¿¼²¢±à³ÌÀ´½â¾ö¸´ÔÓÎÊÌâµÄÈË£¨´ó¼ÒÓ¦¸Ã¶¼Ìý¹ýStallman¹ØÓÚ´òÓ¡»úÇý¶¯µÄ¹ÊÊ°ɣ©¡£
2¡¢Emacs
EmacsÊÇStallman´óʦµÄ½Ü×÷£¬¸ÕÒ»½Ó´¥¾Í±»ËüËùÎüÒý¡£²»¹ÜÊÇEmacsµÄÓµ»¤Õß»¹ÊÇ·´¶ÔÕߣ¬¶¼²»µÃ²»³ÐÈÏEmacs·Ç³£ÓÅÐ㣬EmacsÔ¶Ô¶³¬¹ýÁËÒ»¸öIDE£¬¶øÊÇÒ»¸ö»ùÓڱ༻·¾³µÄOS¡£EmacsÓкܶàºÜºÃµÄÌØÐÔ£¬¾ÍËãÏÖÔںܶà³öÃûµÄIDE¶¼ÎÞ·¨±ÈµÄ£¬±ÈÈ磺ÄÚǶLispº¯ÊýʽÓïÑÔ¡£EmacsÓÐÖÖÖÖÓŵ㣬µ«ÊÇ×÷Ϊһ¸öÆðÔ´ÓÚunixϵͳ²¢ÇÒÊǼ¸Ê®ÄêÇ°Éè¼ÆµÄIDE£¬¶ÔÓÚ½ñÌìµÄÎÒÃÇÀ´Ëµ£¬¿ÉÄÜ»áÓкܶ಻ϰ¹ßµÄµØ·½¡£±ÈÈç¿ì½Ý¼ü¾ÍÊÇÆäÖÐÖ®Ò»£º±ÈÈ縴ÖƺÍÕ³Ìù£¬ºÜ¶àWINDOWSÈí¼þºÍLINUXÈí¼þ¶¼ÓõÄÊÇCTRL+CºÍCTRL+V£¬¶øEmacsʹÓõÄÍêÈ«²»Í¬£¬ÊÇCTRL+SPACEºÍALT+WÊǸ´ÖÆ£¬CTRL+YÊÇÕ³Ìù¡£¸üÖØÒªµÄÊÇ£¬EmacsÒ²ÐèÒª²å¼þ²ÅÄÜʵÏÖC++IDEµÄ¹¦ÄÜ¡£²¢ÇÒ¾õµÃEmacsµÄ·ç¸ñÓеãÏñ“ÉϸöÊÀ¼Í”µÄ¶«Î÷£¬ËùÒÔÎÒ¾õµÃÈç¹ûÄã²»ÊÇÒ»¿ªÊ¼¾ÍÓõÄlinuxϵͳ¡¢Èç¹ûÄãÒѾϰ¹ßÁËÏÖÔڵı༻·¾³£¬ÄÇ×îºÃ»¹ÊÇÑ¡Ò»¸öµ±´úµÄIDE£¬ÒòΪÕâ¸öÓÃÆðÀ´¸üÏ°¹ßһЩ¡£
3¡¢Eclipse
EclipseÊÇÒ»¸öºÜÓÅÐãµÄJAVA×öµÄIDE£¬ÔÚSUNºÍIBM¹«Ë¾µÄÖ§³ÖÏ£¬Eclipseȷʵ×öµÃÏ൱ÓÅÐã¡£ËäÈ»ÎÒ²»»ájava£¬Ã»ÓÐÓÃEclipseд¹ýjava³ÌÐò£¬¶øÊÇÓÃEclipseÀ´Ð´PHP£¬µ«ÊÇÒ²ÄÜÌå»á³öEclipseµÄÓÅÐã¡£²¢ÇÒËüµÄ²å¼þ¹¦ÄÜÒ²×öµÃ·Ç³£°ô£¬ÍøÉÏÓкܶà¹ØÓÚËüµÄ½éÉÜ£¬ÎҾͲ»ÔÚ¶à˵ÁË£¬ÒòΪ£¬ËüÒ²²»ÊÇÎÒ½ñÌìÏë
Ïà¹ØÎĵµ£º
http://msdn.microsoft.com/en-us/library/2e70t5y1(VS.80).aspx
#pragma
pack( n )
n : Valid values are 1, 2, 4, 8, and 16.the
alignment of a member will be on a boundary that is either a multiple of
n
or
a multiple of the size of the member
,
whichever is smaller.
......
½âÎöHostsÎļþ
ºÜ¶àÓû§¶¼ÖªµÀÔÚWindowϵͳÖÐÓиöHostsÎļþ£¨Ã»Óкó׺Ãû£©£¬ÔÚWindows98ϵͳϸÃÎļþÔÚWindowsĿ¼£¬ÔÚWindows2000/XPϵͳÖÐλÓÚC:\Winnt\System32\Drivers\Etc Ŀ¼ÖС£¸ÃÎļþÆäʵÊÇÒ»¸ö´¿Îı¾µÄÎļþ£¬ÓÃÆÕͨµÄÎı¾±à¼Èí¼þÈç¼Çʱ¾µÈ¶¼ÄÜ´ò¿ª¡£
ÓüÇʱ¾´ò¿ªhostsÎļþ£¬Ê×ÏÈ¿´¼ûÁËÎ ......
ÎÒÃÇÐèÒªÒ»¸öcdt£¬Õâ¸ö¿ÉÒÔÔÚEclipse¹ÙÍøÏÂÔØ¡£
ÎÒÃÇÐèÒªMinGW——C/C++±àÒëƽ̨£¬ÏÂÔغóÐèÒª°²×°£¬Í¬Ê±Ñ¡ÖÐg++¡¢MinGW Make£¬Í¬Ê±ÉèÖû·¾³±äÁ¿£¬½«%MinGW_HOME%\binÉèÖõ½PATHÖУ¬È»ºóÎÒÃÇ¿ÉÒÔͨ¹ýÃüÁîÐÐÇû÷gcc£¬¿´ÊÇ·ñÓÐЧ¹û¡£
ÎÒÃÇÐèÒªgdb——C/C++µ÷ÊÔƽ̨£¬ÏÂÔغó°²×°£¬Ä¬Èϵ½MinGW_ ......
Ò»Ö±ÖªµÀÔÚC++ÖÐÓÃextern “C” {
}µ÷ÓÃCÓïÑÔ£¬µ«ÊDz»ÖªµÀΪʲô£¬ËäȻҲ֪µÀ±àÒëÆ÷µÄÃüÃû¹æÔò£¬²»¹ýûÓÐÁªÏëµ½Õâ¸öÉÏÃ棬¿´µ½ÕâƪÎÄÕ£¬²Å»ÐÈ»´óÎò¡£²»¹ý£¬ÒòΪ×Ô¼ºÒ»Ö±ÔÚlinuxÏÂʹ
ÓÃCÓïÑÔ£¬Ã»ÓÐʹÓÃC++µÄ¾ÑéµÄÔµ¹Ê°É£¬Ï£ÍûÒÔºóÄÜÓУ¬ÕâÑù²ÅÄÜÈÚ»á¹áͨ¡£
¹Ø¼üµã£ºº¯ÊýÖØÔØ£¬ÃüÃû¹æÔò
Ò»¡¢C++ÓëC»úÖƱàÒëº ......
Ò»¡¢ÌáÇ°µÄ»°
¡¡¡¡ÒªËµCÓïÑÔºÍLinuxµÄ¹Øϵ´ó¼ÒÓ¦¸Ã¶¼²»»áÄ°Éú£¬LinuxϵͳÄں˾ÍÊÇÓÃCÓïÑÔ¿ª·¢µÄ£¬ËùÒÔËùÓеÄLinuxϵͳÏÂÃæ ¶¼»áÓÐCµÄ±àÒëµ÷ÊÔ¹¤¾ß£¬²»¹ýÕâЩ¹¤¾ß¶¼ÊÇÃüÁîʽµÄ£¬Õýʽ¿ª·¢µÄ»°»áºÜ²»·½±ã¡£FedoraÔÚ°²×°µÄʱºò¿ÉÒÔÑ¡Ôñ°²×°Fedora Eclipse£¬Õâ¸öIDEºÜÇ¿´ó£¬C£¬C++£¬Java£¬PythonµÈµÈ¶¼Ö§³Ö£¬¶øÇÒ±àÒ룬µ÷ÊÔºÍ ......