VS2005Öмì²âºÍ¸üÕý C/C++ ´úÂëȱÏÝ
VS2005Öмì²âºÍ¸üÕý C/C++ ´úÂëȱÏÝ
2006-11-26 15:55
VS2005ÖÐÌṩµÄ¼ì²â·½·¨:
1 IDE£¨¼¯³É¿ª·¢»·¾³£©¼¯³É
2 #pragma Ö§³Ö
3 Åú×¢Ö§³Ö
4 ×÷ΪǩÈë²ßÂÔµÄÒ»²¿·ÖÔËÐзÖÎö¹¤¾ß
5 Team System Óë Team Build µÄ¼¯³É
6 ÃüÁîÐÐÖ§³Ö
Ò» ´úÂë·ÖÎö¹¤¾ßÓÃÓÚ¼ì²â³£¼ûµÄ±àÂë´íÎó£¬ÀýÈ绺³åÇøÒç³ö¡¢ÄÚ´æδ³õʼ»¯¡¢¿ÕÖ¸ÕëÈ¡ÏûÒýÓã¬ÒÔ¼°ÄÚ´æºÍ×ÊԴй¶¡£
Ϊ C/C++ ´úÂëÆôÓôúÂë·ÖÎö
ÔÚ Visual Studio Öдò¿ªÒ»¸öÏîÄ¿¡£
ÔÚ“ÏîÄ¿”²Ëµ¥Éϵ¥»÷“ÊôÐÔ”¡£
µ¥»÷“´úÂë·ÖÎö”¡£
ÔÚ“ÆôÓà C/C++ ´úÂë·ÖÎö”ÁбíÖУ¬Ñ¡Ôñ“ÊÇ(/analyze)”£¬È»ºóµ¥»÷“È·¶¨”¡£
½ûÓÃ C/C++ ´úÂë·ÖÎö
ÔÚ Visual Studio Öдò¿ªÒ»¸öÏîÄ¿¡£
ÔÚ“ÏîÄ¿”²Ëµ¥Éϵ¥»÷“ÊôÐÔ”¡£
µ¥»÷“´úÂë·ÖÎö”¡£
ÔÚ“ÆôÓà C/C++ ´úÂë·ÖÎö”ÁбíÖУ¬Ñ¡Ôñ“·ñ”£¬È»ºóµ¥»÷“È·¶¨”¡£
¶þ ÈôÒª¹ÜÀí¾¯¸æ״̬£¬ÇëÔÚµ¥¶ÀµÄÍ·ÎļþÖÐÁгöËùÓдúÂë·ÖÎö¾¯¸æ¡£½«Í·Îļþ°üÀ¨ÔÚÔ´ÎļþÖС£Ê¹Óà warning pragma ÖØдͷÎļþÖеÄÉèÖá£
ÆôÓûò½ûÓôúÂë·ÖÎö¾¯¸æ
´´½¨Ò»¸öÍ·Îļþ£¬ÆäÖÐÁгöËùÓдúÂë·ÖÎö¾¯¸æºÍÕâЩ¾¯¸æµÄ³õʼ״̬£¬ÈçÏÂÃæµÄ´úÂëËùʾ£º
// WarningState.h
#pragma warning ( enable : 6001 )
#pragma warning ( disable : 6011 )
// more warnings here
// end of file
½« WarningState.h °üÀ¨ÔÚÓ¦ÓóÌÐòÍ·ÎļþÖС£ÔÚ±¾ÀýÖУ¬MyApplication.h ´ú±íÍ·Îļþ¡£
// MyApplication.h file
#include "WarningState.h"
// ...
// end of file
½« MyApplication.h Îļþ°üÀ¨ÔÚÔ´´úÂëÎļþÖС£ÔÚ±¾ÀýÖУ¬MyApplication.cpp ´ú±íÔ´Îļþ¡£
// MyApplication.cpp file
#include "MyApplication.h"
ÈôÒªÐ޸ľ¯¸æ״̬£¬ÇëÔÚ .cpp ÎļþÖÐʹÓà pragma ¾¯¸æ˵Ã÷·û£¬ÈçÏÂÃæµÄ´úÂëËùʾ£º
#pragma warning ( enable : 6011 )
#pragma warning ( disable : 6001 )
Èý ÈôÒªÔÚ C++ ÖÐÅú×¢´úÂ룬±ØÐëÊ×ÏÈ°üÀ¨ SourceAnnotations.h Îļþ£¬È»ºóʹÓà vc_attributes ÃüÃû¿Õ¼ä¡£(ÆäËûµÄÅú×¢ÊôÐÔ:http://msdn2.microsoft.com/zh-cn/library/ms182037(VS.80).aspx)
ÔÚ C++ ÖÐÅú×¢´úÂë
ÏòÏîÄ¿Í·ÎļþÌí¼Ó #include <CodeAnalysis/SourceAnnotations.h> Îļþ¡£ &nbs
Ïà¹ØÎĵµ£º
C²Ù×÷·ûµÄÓÅÏȼ¶ºÍ¹ØÁª¹æÔò
²Ù×÷·û
¹ØÁª¹æÔò
¹ØÁª²Ù×÷·û () [] -> .
´Ó×óµ½ÓÒ
Ò»Ôª²Ù×÷·û ! – ++ -- + - (type) * & sizeof
´ÓÓÒµ½×ó
³Ë·¨ºÍ³ý·¨ * / %
´Ó×óµ½ÓÒ
¼Ó·¨ºÍ¼õ·¨ + -
´Ó× ......
¸üа汾1.0.1£º¸Ã°æ±¾½â¾öÁË֮ǰ1.0.0°æ±¾ÖÐÕÒ²»µ½Á´½Ó¿âlibc.libµÄÎÊÌ⣬ÒÔ¼°IDEϵã»÷Project²Ëµ¥³öÏÖµÄBUG¡£ÏÂÔصØÖ·£ºhttp://download.csdn.net/source/1597132
Doctors±àÒëÆ÷ÄÚ²¿ÊµÏÖ
For version 1.0.1
³ö´¦£ºhttp://blog.csdn.net/huyansoft
×÷ÕߣººúÑå
Copyright(c) 2009£¬All Rights Reserved
&nbs ......
Ò»¡¢¶àάÊý×éµØÖ·µÄ±íʾ·½·¨
¡¡¡¡ÉèÓÐÕûÐͶþάÊý×éa[3][4]ÈçÏ£º
¡¡¡¡0 1 2 3
¡¡¡¡4 5 6 7
¡¡¡¡8 9 10 11
¡¡¡¡ÉèÊý×éaµÄÊ×µØַΪ1000£¬¸÷ϱê±äÁ¿µÄÊ×µØÖ·¼°ÆäÖµÈçͼËùʾ¡£
ÔÚÇ°ÃæÔø¾½éÉܹý£¬ CÓïÑÔÔÊÐí°ÑÒ»¸ö¶þάÊý×é·Ö½âΪ¶à¸öһάÊý×éÀ´´¦Àí¡£Òò´ËÊý×éa¿É·Ö½âΪÈý¸öһάÊý×飬¼´a[0]£¬a[1]£¬ ......
¸ù¾Ý¡¶programming in lua¡·µÚ26ÕµÄÄÚÈÝ£¬ÎÒ×ö³öÀ´µÄÈçÏ£º
1.
Ê×ÏÈ£¬ÎÒµÄLuaĿ¼Ϊ£ºD:\lua5.1\
»·¾³Îª windows ; VC++express edition 2008 ; Lua5.1.4 ; Notepad++
µ±È»£¬ÄãÐèÒªÔÚVC++2008ÖÐÅäÖúÃlua£º
ÕâÀïÏȲ»¶à×ö½âÊÍ£¬¼ÙÉèÄãÒѾÅäÖúÃÁË¡£
2.
& ......
ÏÖÔڵĹ«Ë¾ÕÐƸ,¶¼Òª±ÊÊÔÃæÊÔ.Èç¹ûÄã²»ÊÇÄÇÖÖ±à³Ì¹¦µ×·Ç³£ÉîºñµÄÈË,ÓÖ²»ºÃºÃ×¼±¸Ò»·¬,ÔÚ±ÊÊÔÃæÊÔÖÐÍùÍù»á´¦ÓÚ±»¶¯¾ÖÃæ.ËäÈ»ÓÐЩ±ÊÊÔÌâÊǹÊÒâΪÄÑÎÒÃÇ£¬Óеã×êÅ£½Ç¼â.µ«ÊǺܶà±ÊÊÔÌâÃæÊÔÌâȷʵÄܹ»ºÜºÃµØ¿´³öÎÒÃǵĻù´¡. ÔÚÕâÀï,ÎÒ¾ÍÂÔÈ¥ÄÇЩ×êÅ£½Ç¼âµÄÌâ.´ÓcsdnÂÛ̳ÎÒ½ü°ëÄêµÄÊÕ¼¯ÖÐÑ¡³ö10µÀÓдú±íÐÔµÄÌâÄ¿,ÄѶȻù±¾ÉÏÊÇÖ ......