(windowsÏÂ)ÓÃEclipse´î½¨C/C++¿ª·¢»·¾³
--------Èç¹ûÄãÓõÄÊÇ»ò´òËãÓÃEclipse For C++£¬ÄÇô´ÓÕâÀï¿´,
1. Ê×ÏÈÏÂÔØEclipse for C++, ×îаæÊÇ»ùÓÚEclipse 3.5.2µÄ,eclipse-cpp-galileo-SR2-win32.zip
2. ½âѹ£¬Ö±½ÓÔËÐС£×¢Ò⣬ÖÁÉÙJDKÄãÒѾ°²×°ÁË£¨ÎÒÓõÄÊÇJDK1.6£©¡£ÔËÐкówelcomeÒ³Ãæ³öÏÖ£¬½øÈëTutorials¡£ÏȶÁTutorialÊǸöºÃÏ°¹ß¡£
3. Ê×ÏÈ Ê²Ã´ÊÇCDT... È»ºó˵£¬Ã»°üº¬C/C++µÄ±àÒëÆ÷¡¢µ÷ÊÔÆ÷£¬ÄãµÃ×Ô¼ºÅª¡£
--------Èç¹ûÓõÄÊÇ»ò´òËãÓõÄÊÇEclipse ²»For C++µÄ,±ÈÈçżÓõÄEclipse Classic. ÄÇô´ÓÕâÀï¿´
1. Ê×ÏÈÏÂÔØEclipse, ±¾ÎÄ»ùÓÚµÄÊÇeclipse-SDK-3.5.2-win32.zip
2. ½âѹ£¬Ö±½ÓÔËÐС£×¢Ò⣬ÖÁÉÙJDKÄãÒѾ°²×°ÁË£¨ÎÒÓõÄÊÇJDK1.6£©¡£ÔËÐкówelcomeÒ³Ãæ³öÏÖ£¬½øÈëTutorials¡£ÏȶÁTutorialÊǸöºÃÏ°¹ß¡£
3. È»ºó£¬ÖÁHelp|Install new Software,ÊäÈëhttp://download.eclipse.org/tools/cdt/releases/galileoÏÂÔØCDT main feature;
CDT˵Ëüû°üº¬C/C++µÄ±àÒëÆ÷¡¢µ÷ÊÔÆ÷£¬ÄãµÃ×Ô¼ºÅª¡£
(µ±È»Ò²¿ÉÒÔÏÈ°ÑCTDÏÂÔØ»ØÀ´£¬×ÔÒѸ㵽eclipseÏÂ,µ«ÎÒŪÁ˼¸´Î¶¼Ã»³É¹¦)
-----------------------------------------------------------------------------------------------
4. ¼ÌÐø¡£WindowsÏ£¬MinGWºÍCygwin ÊÇ»ñÈ¡GNU toolchainµÄ2ÖÖÖ÷Òª·½Ê½. ÕâÁ½Õß×î´óµÄÇø±ðÊÇMinGWʹÓÃWindows CµÄÔËÐп⣬½Ð×ömscvrt£¬¶øCygwinʹÓÃÁËÒ»×é»ùÓÚGPLµÄDLLs£¨GPLÐÒé¾ßÓд«È¾ÐÔ£¬Ê¹ÓÃGPLÐÒéϵÄÈí¼þºóÄã×Ô¼º¿ª·¢µÄ¶«Î÷Ò²Òª×ñÊØGPLÐÒ飩£¬Òò´ËMinGW±Ü¿ªÁËGPLÐÒé¡£
5. MinGWºÍCDTÄܺܺõÄÕûºÏ¡£ºÃ°É£¬ÎÒÃÇ×°MinGW£¨Minimal GNU for WindowsµÄÒâ˼£¬Õâ¸öÏÂÔعý³ÌÏ൱Âý£¬ÎÒÏÂÁË´ó°ë¸öСʱ£©¡£µ±Ç°°æ±¾ÊÇMinGW-5.1.6.exe£¬ÎÒÒ»¹ÉÄÔÀ´Á˸öFull install¡£×°Íêºó²Å·¢ÏÖÕâôһ¾ä£ºDo not install the MinGW Make feature as the MSYS version of make from step 5 is a more complete implementation of make.£¨²»Òª°²×°MinGWµÄMake, µÚ5²½µÄMSYSÊǸö¸üºÃµÄʵÏÖ·½°¸£©
6. OK£¬Ð¶ÁËÖØ×°¡£ÕâÀïÊÇÍêÕûµÄ°²×°²½Ö裺
6.1)ÏÂÔØMinGW
6.2)°²×°MinGW base toolºÍg++±àÒëÆ÷£¨²»Òª°²×°Make£©,
g77 compiler²»ÖªµÀÊÇʲô¶«Î÷£¬ÏȲ»¹Ü£¬
¾ÓÈ»»¹ÓиöAdaµÄ±àÒëÆ÷£¬ÏȲ»¹Ü£¬
java compileròËÆÓÐJDK¾Í²î²»¶à£¬Ò²²»¹Ü,
Objective C compiler£¬ºÃÏñºÍCÓеã¹Ø£¬×°ÉÏ,
MinGW Make, ²»ÊÇ˵MSYSÊǸüºÃµÄ·½°¸£¬²»×° :
(ÓÐÈË˵ÕâÀïֻҪѡÖÐG++¾Í¿ÉÒÔÁË£¬ÎÒûÓÐÊÔ¹ý)
3)ûÓÐgdb debugger? ÏÂÔØ(ÏÖÔÚ×îе
Ïà¹ØÎĵµ£º
»¨·ÑÁËÊ®Ììʱ¼ä£¬Îª¹«Ë¾¿ª·¢ÁËÒ»Ì×¼òµ¥µÄÍøÂç°æµÄÐÅÏ¢¹ÜÀíϵͳ,¹¦ÄÜÖ÷ÒªÓпͻ§ÐÅÏ¢¹ÜÀí,Ô±¹¤ÐÅÏ¢¹ÜÀí,³£ÓÃÐÅÏ¢¹ÜÀí(¸÷ÖÖÐź¯´òÓ¡¡¢³£ÓÃÍøÖ·/³£Óõ绰µÈ),¹«Ë¾¼òµ¥µÄ²ÆÎñ¹ÜÀíµÈ¡£°ÑһЩµãµãµÎµÎµÄ¼¼ÇÉÔڴ˼ǼÏÂÀ´£¬ÒÔ±¸²éÓá£
1.Êý¾Ý°ó¶¨¡£ DataReader ¶ÁÈ¡Êý¾Ý£¬ÓÃDataTable.Load(IDataReader)·½·¨½«Êý¾Ý¼ÓÔص½ DataTable ......
·ÃÎÊNand FlashʱÐèÒªÏÈ·¢³öÃüÁȻºó·¢³öµØÖ·ÐòÁУ¬×îºó¶Á/дÊý¾Ý£»
ÐèҪʹÓø÷¸öÐźÅÀ´·Ö±æÃüÁî¡¢µØÖ·¡¢Êý¾Ý£»
S3C2410 µÄNand Flash¿ØÖÆÆ÷ ÌṩÁËÏà¹Ø¼Ä´æÆ÷À´¼ò»¯ÕâЩ²Ù×÷£º
& ......
ºê¶¨ÒåÁËÒ»¸ö´ú±íÌض¨ÄÚÈݵıêʶ·û¡£Ô¤´¦Àí¹ý³Ì»á°ÑÔ´´úÂëÖгöÏֵĺê±êʶ·ûÌæ»»³Éºê¶¨ÒåʱµÄÖµ¡£ºê
×î³£¼ûµÄÓ÷¨ÊǶ¨Òå´ú±íij¸öÖµµÄÈ«¾Ö·ûºÅ¡£ºêµÄµÚ¶þÖÖÓ÷¨ÊǶ¨Òå´ø²ÎÊýµÄºê£¬ÕâÑùµÄºê¿ÉÒÔÏóº¯ÊýÒ»Ñù
±»µ÷Ó㬵«ËüÊÇÔÚµ÷ÓÃÓï¾ä´¦Õ¹¿ªºê£¬²¢Óõ÷ÓÃʱµÄʵ¼Ê²ÎÊýÀ´´úÌ涨ÒåÖеÄÐÎʽ²ÎÊý¡£
1.#defineÖ¸Áî
#defineÔ¤´¦Àí ......
BSS
δ³õʼ»¯µÄÊý¾Ý
DATA
³õʼ»¯µÄÊý¾Ý
TEXT(code)
´úÂë
ÔÚCÖÐÓÐÈ«¾Ö¡¢¾Ö²¿£¨×Ô¶¯±äÁ¿£©ºÍ¾²Ì¬±äÁ¿¡£
È«¾Ö±äÁ¿ÔÚCÓïÑÔÀï±íʾʱ£¬ÔÚº¯ÊýÖ®ÍâµÄ¾ÍÊÇÈ«¾Ö±äÁ¿£¬¼´ÔÚº¯ÊýÍâËùÉêÃ÷µÄ±äÁ¿£»¶ø¾²Ì¬±äÁ¿¿ÉÒÔ·ÅÔÚº¯ÊýÍ⣬Ҳ¿ÉÒÔ·ÅÔÚº¯ÊýÄÚ¡£È«¾Ö±äÁ¿ÓÐÁ½¸ö×÷Ó㺵ÚÒ»£¬µ±ÔÚº¯ÊýÍâÉê ......
ÔÚC++ÖУ¬¿ÉÒÔʹÓöàÖÖ·½·¨¶ÔÎļþ½øÐвÙ×÷£¬Èç»ùÓÚCµÄÎļþ²Ù×÷¡¢»ùÓÚC++µÄÎļþ²Ù×÷µÈµÈ£»
¡ô»ùÓÚCµÄÎļþ²Ù×÷
ÔÚANSI CÖУ¬¶ÔÎļþµÄ²Ù×÷·ÖΪÁ½ÖÖ·½Ê½£¬¼´Á÷ʽÎļþ²Ù×÷ºÍI/OÎļþ²Ù×÷£¬ÏÂÃæ¾Í·Ö±ð½éÉÜÖ®¡£
Ò».Á÷ʽÎļþ²Ù×÷
ÕâÖÖ·½Ê½µÄÎļþ²Ù×÷ÓÐÒ»¸öÖØÒªµÄ½á¹¹FILE£¬FILEÔÚstdio.hÖж¨ÒåÈçÏ£º
typedef struct {
i ......