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´¦ÀíÆ÷Ó
Ïà¹ØÎĵµ£º
ÎÞÒâÖз³öÁËNÄêǰдµÄµÝ¹é-»ØËÝ·¨Çó½â8»ÊºóÎÊÌ⣬¸É´âÈûµ½²©¿ÍÖаɡ£
#include <stdio.h>
#include <conio.h>
#include <math.h>
#define QUEENS 8
// ¼Ç¼½âµÄÐòºÅµÄÈ«¾Ö±äÁ¿¡£
int iCount = 0;
// ¼Ç¼»ÊºóÔÚ¸÷ÁÐÉϵķÅÖÃλÖõÄÈ«¾ÖÊý×é¡£
int Site[QUEENS];
// µÝ¹éÇó½âµÄº¯Êý¡£
void Q ......
1.·Ö²ãÉè¼Æ£¬¸ôÀëÆ½Ì¨Ïà¹ØµÄ´úÂë¡£¾ÍÏñ¿É²âÊÔÐÔÒ»Ñù£¬¿ÉÒÆÖ²ÐÔÒ²Òª´ÓÉè¼Æ×¥Æð¡£Ò»°ãÀ´Ëµ£¬×îÉϲãºÍ×îϲ㶼²»¾ßÓÐÁ¼ºÃµÄ¿ÉÒÆÖ²ÐÔ¡£×îÉϲãÊÇ
GUI£¬´ó¶àÊýGUI¶¼²»ÊÇ¿çÆ½Ì¨µÄ£¬ÈçWin32 SDKºÍMFC¡£×îϲãÊDzÙ×÷ϵͳAPI£¬´ó¶à²¿·Ö²Ù×÷ϵͳAPI¶¼ÊÇרÓõġ£
¡¡¡¡
Èç¹ûÕâÁ½²ãµÄ´úÂëÉ¢²¼ÔÚÕû¸öÈí¼ ......
ʹÓÃObjective-C½âÎöHTML»òÕßXML£¬ÏµÍ³×Ô´øÓÐÁ½ÖÖ·½Ê½Ò»¸öÊÇͨ¹ýlibxml£¬Ò»¸öÊÇͨ¹ýNSXMLParser¡£²»¹ýÕâÁ½ÖÖ·½Ê½¶¼ÐèÒª×Ô¼ºÐ´ºÜ¶à±àÂëÀ´´¦ÀíץȡÏÂÀ´µÄÄÚÈÝ£¬¶øÇÒ²»ÊǺÜÖ±¹Û¡£
ÓÐÒ»¸ö±È½ÏºÃµÄÀà¿âhpple£¬ËüÊÇÒ»¸öÇáÁ¿¼¶µÄ°ü×°¿ò¼Ü£¬¿ÉÒԺܺõĽâ¾öÕâ¸öÎÊÌâ¡£ËüÊÇÓÃXPathÀ´¶¨Î»ºÍ½âÎöHTML»òÕßXML¡£
°²×°²½Ö裺
-¼ÓÈë libx ......
һƪ½²¶ÔÆë±È½ÏºÃµÄÎÄÕ£¬×ªÌùÈçÏÂ:
´óÖ±ê×¢Ò»¶þ:
1.ÄÚ´æ¶ÔÆë:¼ÆËã»úϵͳ¶Ô»ù±¾ÀàÐÍÊý¾ÝÔÚÄÚ´æÖдæ·ÅµÄλÖÃÓÐÏÞÖÆ£¬ËüÃÇ»áÒªÇóÕâЩÊý¾ÝµÄÊ×µØÖ·µÄÖµÊÇij¸öÊýk(ͨ³£ËüΪ4»ò8)µÄ±¶ÊýkÔò±»³ÆÎª¸ÃÊý¾ÝÀàÐÍµÄ¶ÔÆëÄ£Êý(alignment modulus)
2.²»Í¬±àÒëÆ÷ĬÈϵÄ×î´ó¶ÔÆë×Ö½ÚÊýÊDz»Ò»ÑùµÄ,±ÈÈçvc==8,gcc==4,¿ÉÒÔͨ¹ ......