第十三章
Post on 06-Jan-2016
25 Views
Preview:
DESCRIPTION
TRANSCRIPT
-
Visual C++ 2005_DEBUGassert()try/catchVisual C++
-
13-1 Visual C++ 2005
-
13-1 Visual C++ 2005 Bug(debugging)10~15
-
Visual C++ 2005 Visual C++ 2005F5Visual C++ 2005
-
13-1 Visual C++ 2005
-
13-1-1 Visual C++ 2005
-
SetConfig.cpp(1)
-
SetConfig.cpp(2)
-
SetConfig.cppkey34563456
-
13-1 Visual C++ 2005
-
13-1-2 3
-
.
-
../ErrConfig
-
4
-
Visual C++ 2005Visual C++ 2005/Z7/Zi/ZI
-
5
-
(/Od
-
/DEBUG
-
DEBUGDEBUG*.exeDLLPDBPDB
-
13-1 Visual C++ 2005
-
13-1-3
-
/
-
SetConfig.cpp
-
(F11)(F10)
-
.SetConfig.cpp13-18coutF119ostream
-
..13-2SetConfig.cppostream
-
13-38F1010
-
13-1 Visual C++ 2005
-
13-1-4 F10main()
-
.F108 inkeykeyinkeykey3456
-
..key F10foriforF10123456Enter
-
13F1014 keyinkeyi1ans13keyinkey0F10151419202124for14if
-
.14ifans
-
..ans
-
19ifans==5false()ans == 0
-
SetConfig.cpp()
-
13-1 Visual C++ 2005
-
13-1-5 SetBreak.vcrpojfor
-
SetBreak.vcproj5short-32,768 ~ + 32,7676forcount
-
.F97count7
-
..F9
-
count0 1
-
2
-
3
-
4F5count0
-
5count-32768count < 100
-
6F599count99Visual C++ 2005
-
13-2
-
13-2 C++
-
13-2
-
13-2-1 _DEBUG_DEBUG#ifdef/#endifVisual C++Debug#ifdef#endif_DEBUGDebugReleaseErrPoint.vcproj
-
ErrPoint.vcproj\debug.h_DEBUG_DEBUGAssertion_DEBUG#ifdef _DEBUG #endif
-
ErrPoint.vcproj\ErrPoint.cpp(1)
-
ErrPoint.vcproj\ErrPoint.cpp(2)
-
ErrPoint.cpp3assert412~15POINT_TRACE13
-
13-2
-
13-2-2 assertassert ErrPoint.cpp16assert()ptr assert()abort()ptrNULLErrPoint.cpp16assert()ptr
-
13-3
-
13-3 Bug
-
13-3
-
13-3-1 l10o i
-
.2sum
-
.. sum = 5556while
-
13-3
-
13-3-2 ErrStatement.vcproj
-
ErrStatement.vcprojvalue
-
13-3
-
13-3-3 newdelete
-
13-4
-
13-4 C++Exceptions
-
13-4
-
13-4-1 main()trycatch
-
try...catchtrycatch
-
simpleTry.cpp(1)
-
simpleTry.cpp(2)
-
simpleTry.cpp11~20trycatch010010001315throw18catch
-
13-4
-
13-4-2
-
FuncTry.cpp(1)simpleTry.cpp
-
FuncTry.cpp(2)
-
7~1713getNumber()19~29getNumber()
-
13-4
-
13-4-3
-
.. MyClassthrowtry/catch
-
message.h4~8Messagethrow6~8
-
ClassTry.vcproj(1)
-
ClassTry.vcproj(2)
-
ClassTry.vcproj
-
ClassTry.vcproj3~11Number8engmathchin13~21handle()16~18if100100throwMessage29~32catchshow()25~28tryNumbersubjecthandle()100100
-
.Visual C++ 2005
-
.._DEBUGassertC++Exceptionsthrowtrycatch
top related