ECLIPSE ¿ª·¢ C/C++ ¹¤³Ì
×î½üÒ»¸öÅóÓÑ×¼±¸°ÑC´úÂëÔÚECLIPSEÉϱàÒ룬ÒÔÇ°Ò»Ö±¸ãµÄJAVA£¬Ò²ÖªµÀECLIPSEÖ§³ÖC¹¤³Ì£¬µ«ÊÇ×Ô¼º´ÓÀ´Ã»¸ã¹ý£¬ËùÒÔ¾Í×Ô¼ºÏÈ´ÓÍøÂçÉÏÕÒ×ÊÁÏ£¬Ö÷Òª·½·¨ÈçÏÂ
1¡¢°²×°JDKºÍEclipse
ÕâÀï¾Í²»¶à˵£¬¾ßÌåÇë¼û£ºhttp://blog.chinaunix.net/u/16292/showart_223309.html
Îҵݲװ»·¾³ÊÇjdk1.5£¬eclipse3.2.1
2¡¢°²×°C++µÄEcilpse²å¼þCDT
cdt²å¼þµÄÏÂÔØ£º
http://www.eclipse.org/cdt/
http://download.eclipse.org/tools/cdt/builds/
»òÕߣº
´ò¿ªEclipse£¬Ñ¡ÔñHelp¡¢Software Update¡¢Find and Install
Ñ¡ÔñSearch new features£¬µãNext
µã»÷New Remote Site,ÔÚName¿òÊäÈëCDT£¨Ãû×Ö£¬¿ÉÒÔËæ×Ô¼ºÏ²»¶£©£¬
URL¿òÊäÈëhttp://update.eclipse.org/tools/cdt/releases/new
3¡¢Ñ¡ÔñÒ»¸öwindowsÏÂC++±àÒëÆ÷£¬ÕâÀïÎÒÃÇÑ¡ÔñCygwin
ÏÂÔØ°²×°µØÖ·£ºhttp://sourceware.org/cygwin/
ÕâÀïÖصã½éÉÜÏ¡£
step1. ÏÂÔغ󣬵ã»÷°²×°Îļþ(setup.exe)½øÐа²×°£¬µÚÒ»¸ö»ÃæÊÇGNU°æȨ˵Ã÷£¬µã"ÏÂÒ»²½(N)—>"£¬
½øÈ밲װģʽѡÔñ»Ãæ¡£
step2. °²×°Ä£Ê½ÓÐ"Install from Internet"¡¢"Download form Internet"¡¢
"Install from Local Directory" ÈýÖÖ¡£"Install form Internet"¾ÍÊÇÖ±½Ó´ÓinternetÉÏ×°£¬ÊÊÓÃÓÚÍøËٽϿìµÄÇé¿ö¡£Èç¹ûÄãºÍÎÒÒ»ÑùÍøËÙ²»ÊǺܿ죬»òÕß˵װ¹ýÖ®ºóÏë°ÑÏÂÔصݲװÎļþ±£´æÆðÀ´£¬Ï´β»ÔÙÏÂÔØÁËÖ±½Ó°²×°£¬¾ÍÓ¦¸ÃÑ¡Ôñ"Download form Internet"£¬ÏÂÔØ°²×°µÄÎļþ£¨´óÔ¼40M×óÓÒ£©¡£
ÊÂʵÉÏ£¬ËùνµÄ"±¾µØ°²×°°æ"£¬Ò²ÊDZðÈË´ÓÍøÉÏÏÂÔØÈ«²¿Îļþºó´òµÄ°ü(ÊÊÓÃÓÚÖйú¹úÇéÂï^_^)
step3. ½ÓÏÂÀ´ÊÇÑ¡Ôñ°²×°Ä¿µÄ·¾¶ºÍ°²×°Ô´ÎļþËùÔڵķ¾¶£¬Ö®ºó¾Í½øÈëÁËÑ¡Ôñ°²×°°üËùÔڵķ¾¶¡£
×¢ÒâÁË°¢£¬ÕâÀï¿ÉÊÇÖØÍ·Ï·¡£ÎÒµÚÒ»°²×°µÄʱºò¾ÍÊÇûÓп´ÇåÕâÒ»²½£¬½á¹ûûÓаÑgcc×°½øÈ¥£¬µ¼ÖÂû·¨±àÒëÎļþ¡£
+ All Default
+ Admin Default
....
+ Devel Default
+ Editors Default
....
ÈçÉÏͼËùʾ£¬ÄãÔÚÕâ¸öTreeViewµÄij¸ö½ÚµãÉÏË«»÷£¬¾Í¿ÉÒԸıäËüµÄ״̬£¬ÈçDefault¡¢Install¡¢Uninstall¡¢ReinstallËÄÖÖ״̬¡£Ä¬ÈϵĶ¼ÊÇDefault״̬£¬ºÜ¶à¹¤¾ßµÄĬÈÏ״̬¶¼ÊDz»°²×°¡£
ÔÚÕâÀïÎÒÑ¡ÔñÁËÔÚAllÕâÒ»ÐÐÉϺóÃæµÄDefaultÉ
Ïà¹ØÎĵµ£º
Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.Á ......
In C programming language, the observer design pattern is implemented with function pointer (aka callback function). But in Qt library, it introduces signal and slot. How to link a callback function from the C callback function to the C++ siganl and slot is a problem I encounter. Call back function ......
CÖеÄCONST¡¡¡¡
CÖÐCONSTµÄʹÓãº
¡¡¡¡constÊÇÒ»¸öCÓïÑԵĹؼü×Ö£¬ËüÏÞ¶¨Ò»¸ö±äÁ¿²»ÔÊÐí±»¸Ä±ä¡£Ê¹ÓÃconstÔÚÒ»¶¨³Ì¶ÈÉÏ¿ÉÒÔÌá¸ß³ÌÐòµÄ°²È«ÐԺͿɿ¿ÐÔ£¬ÁíÍ⣬ÔÚ¹Û¿´±ðÈË´úÂëµÄʱºò£¬ÇåÎúÀí½âconstËùÆðµÄ×÷Ó㬶ÔÀí½â¶Ô·½µÄ³ÌÐòÒ²ÓÐһЩ°ïÖú¡£
¡¡¡¡ËäÈ»ÕâÌýÆðÀ´ºÜ¼òµ¥£¬µ«Êµ¼ÊÉÏ£¬constµÄʹÓÃÒ²ÊÇcÓïÑÔÖÐÒ»¸ö±È½Ï΢ÃîµÄµØ ......
constÓë#define×î´óµÄ²î±ð£¬ConstÔÚ¶ÑÕ»·ÖÅäÁ˿ռ䣬¶ø#defineÖ»ÊǰѾßÌåÊýÖµÖ±½Ó´«µÝµ½Ä¿±ê±äÁ¿°ÕÁË¡£»òÕß˵£¬constµÄ³£Á¿ÊÇÒ»¸öRun-TimeµÄ¸ÅÄËûÔÚ³ÌÐòÖÐȷȷʵʵµÄ´æÔÚ¿ÉÒÔ±»µ÷Óᢴ«µÝ¡£¶ø#define³£Á¿ÔòÊÇÒ»¸öCompile-Time¸ÅÄËüµÄÉúÃüÖÜÆÚÖ¹ÓÚ±àÒëÆÚ£ºÔÚʵ¼Ê³ÌÐòÖÐËûÖ»ÊÇÒ»¸ö³£Êý¡¢Ò»¸öÃüÁîÖе ......
BioscomʹÓÃ×¢Ò⣺´®¿Ú½ÓÏß·½Ê½Îª4£¬6£»7£¬8·Ö±ð¶Ì½Ó¡£½ö´Ëº¯ÊýÒªÇó¡£
·ñÔò»áÔì³ÉÖ»ÄܽÓÊÜÎÞ·¨·¢ËÍÊý¾Ý¡£º¯Êý·µ»ØÖµ´íÎó£¡
º¯ÊýÃû: bioscom
¹¦ ÄÜ: ²Ù×÷portÖ¸¶¨µÄRS232Ò첽ͨѶ¿Ú
ÓÃ ......