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

C/C++±àÒëÆ÷ cl.exeµÄÃüÁîÑ¡Ïî

ºÍÔÚIDEÖбàÒëÏà±È£¬ÃüÁîÐÐģʽ±àÒëËٶȸü¿ì£¬²¢¿ÉÒÔ±ÜÃâ±»IDE²úÉúµÄһЩ¸½¼ÓÐÅÏ¢Ëù¸ÉÈÅ¡£±¾ÎĽ«½éÉÜ΢ÈíC/C++±àÒëÆ÷ÃüÁîÐÐģʽÉ趨ºÍÓ÷¨¡£ 1¡¢ÉèÖû·¾³±äÁ¿£º PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\include LIB=C:\Program Files\Microsoft Visual Studio 8\VC\lib Èç¹ûÌáʾÕÒ²»µ½mspdb80.dllÎļþ£¬Ôò´ÓC:\Program Files\Microsoft Visual Studio 8\Common7\IDEÏ¿½±´¡°msobj80.dll,mspdb80.dll,mspdbcore.dll,mspdbsrv.exe¡±ÕâËĸöÎļþµ½C:\Program Files\Microsoft Visual Studio 8\VC\binϼ´¿É¡£ 2¡¢ÃüÁîÑ¡Ï 1)       /C:ÔÚÔ¤´¦ÀíÊä³öÖб£Áô×¢ÊÍÓï¾ä 2)       /c:Ö»±àÒ룬²»Á¬½Ó£¬Ï൱ÓÚÔÚ"Build"²Ëµ¥ÏÂÑ¡ÔñÁË"Compile" 3)       /D:¶¨Òå³£Á¿ºÍºê£¬ÓëÔ´³ÌÐòÀïµÄ#define ÓÐÏàͬЧ¹û 4)       /E:Ô¤´¦ÀíC¡¢C£«£«Ô´Îļþ£¬½«Ô´ÎļþÖÐËùÓеÄÔ¤±àÒëÖ¸Áî¼°ºêÕ¹¿ª£¬½«×¢ÊÍÈ¥µô£¬È»ºó½«Ô¤´¦ÀíÆ÷µÄÊä³ö¿½±´ÖÁ±ê×¼Êä³öÉ豸Êä³ö£¬²¢ÇÒÔÚÿ¸öÎļþµÄ¿ªÍ·ºÍĩβ¼ÓÈë#line 5)       /EH:Ö¸¶¨±àÒëÆ÷ÓúÎÖÖÒì³£´¦ÀíÄ£ÐÍ 6)       /EP:ͬ/E,Ö»ÊÇÈ¥µôÁË#line 7)       /F:ÉèÖóÌÐòµÄ¶ÑÕ»´óС 8)       /FA:ÉèÖÃÉú³ÉºÎÖÖÁбíÎļþ£¨»ã±à¡¢»ã±àÓë»úÆ÷Âë¡¢»ã±àÓëÔ´Âë¡¢»ã±àÓë»úÆ÷ÂëÒÔ¼°Ô´Â룩 9)       /Fa:Ö¸¶¨ÓÃ/FAÉèÖõÄÁбíÎļþµÄ´æ·Å·¾¶¼°£¨»ò£©ÎļþÃû 10)  /FD:Éú³ÉÎļþµÄÏ໥ÒÀÀµÐÅÏ¢ 11)  /Fd:ÉèÖóÌÐòÊý¾Ý¿âÎļþ£¨PDB£©µÄ´æ·Å·¾¶¼°£¨»ò£©ÎļþÃû 12)  /Fe:ÉèÖÃ×îÖÕ¿ÉÖ´ÐÐÎļþµÄ´æ·Å·¾¶¼°£¨»ò£©ÎļþÃû 13)  /FI:Ô¤´¦ÀíÖ¸¶¨µÄÍ·Îļþ£¬ÓëÔ´ÎļþÖеģ£includeÓÐÏàͬЧ¹û 14)  /Fm:´´½¨mapÎļþ 15)  /Fo:ÉèÖñàÒëºóObjÎļþµÄ´æ·Å·¾¶¼°£¨»ò£©ÎļþÃû 16)  /Fp:ÉèÖÃÔ¤±àÒëÎļþ£¨pch£©µÄ´æ·Å·¾¶¼°£¨»ò£©ÎļþÃû 17)  /FR:Éú³Éä¯ÀÀÐÅÏ¢£¨sbr£©Îļþ 18)  /Fr:ͬ/FR,²»Í¬Ö®´¦ÔÚÓÚ/Fr²»°üÀ¨¾Ö²¿±äÁ¿ÐÅÏ¢ 19)  /G3:Ϊ80386´¦ÀíÆ÷ÓÅ»¯´úÂëÉú³É 20)  /G4:Ϊ80486´¦ÀíÆ÷ÓÅ»¯´úÂëÉú³É 21)  /G5:ΪPentium´¦ÀíÆ÷Ó


Ïà¹ØÎĵµ£º

C/C++λ²Ù×÷

C/C++λ²Ù×÷
Ò»¡¢´«Í³µÄC·½Ê½Î»²Ù×÷£º
1.»ù±¾²Ù×÷£º
  ʹÓÃÒ»¸öunsigned int±äÁ¿À´×÷ΪλÈÝÆ÷¡£
2.²Ù×÷·û£º
|  °´Î»»ò²Ù×÷·û£ºresult=exp1|exp2;µ±exp1ºÍexp2ÖжÔӦλÖÐÖÁÉÙÓÐÒ»¸öΪ1ʱ£¬resultÖжÔӦλΪ1£¬·ñÔòΪ0¡£
&  °´Î»Óë²Ù×÷·û£º£ºresult=exp1&exp2;µ±exp1ºÍexp2ÖжÔӦλȫΪ1ʱ ......

±àд¿ÉÒÆÖ²C/C++³ÌÐòÒªµã

      1.·Ö²ãÉè¼Æ£¬¸ôÀëƽ̨Ïà¹ØµÄ´úÂë¡£¾ÍÏñ¿É²âÊÔÐÔÒ»Ñù£¬¿ÉÒÆÖ²ÐÔÒ²Òª´ÓÉè¼Æ×¥Æð¡£Ò»°ãÀ´Ëµ£¬×îÉϲãºÍ×îϲ㶼²»¾ßÓÐÁ¼ºÃµÄ¿ÉÒÆÖ²ÐÔ¡£×îÉϲãÊÇ
GUI£¬´ó¶àÊýGUI¶¼²»ÊÇ¿çƽ̨µÄ£¬ÈçWin32 SDKºÍMFC¡£×îϲãÊDzÙ×÷ϵͳAPI£¬´ó¶à²¿·Ö²Ù×÷ϵͳAPI¶¼ÊÇרÓõġ£
¡¡¡¡
Èç¹ûÕâÁ½²ãµÄ´úÂëÉ¢²¼ÔÚÕû¸öÈí¼ ......

Window+GCC+CDTÓÃEclipse¿ª·¢C¡¢C++

Eclipse³ýÁË¿ÉÒÔ開發JavaÖ®Í⣬還Ö§Ô®ÁË許¶à語ÑÔ£¬現ÔÚÏȽé紹
C¡¢C++µÄ開發環¾³設¶¨£¬ÒÔááÓÐ機會ÔÙ½é紹ÆäËüµÄ¡£Enjoy it£¡
OS£ºWindows XP Professional SP1
ʹÓð汾£ºEclipse 2.1.2
Ò».Ê×ÏÈÒªÏÂ載CDT£¬Eclipse 2.1.2 ......

linux c ¶ÁÈ¡ÎļþÐÐÊý

linux c ¶ÁÈ¡ÎļþÐÐÊý²ÎÕÕwc ϵͳÃüÁî±àдµÄº¯ÊýÈçÏ£º
#include <fcntl.h>
#include <stdlib.h>
#define MAXBSIZE 65536
u_long file_wc(char *file)
{
register u_char *p;
register short gotsp;
register int ch, len;
register u_long linect, charct;
int fd;
u_char buf[MAXBSIZE];
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ