Debug mark
Applicable preprocessing #define defines one or more debug marks, and manages the debugging section in the code. When the program finally debugged, just use the #undef tag, the debug code will disappear. Commonly used debug markers are Debug, statement sequence:
#define debug
#ifdef debug
Debug code
#ENDIF
2. Debug tag during operation
Turn the debug mark on and off during the program. It can be implemented by setting a debug BOOL tag. This is more convenient to run the command line.
Such as the following code
#include 3. Convert variables and expressions into strings However, using a string operator to implement the conversion output definition #define pr (x) cout << # x "=" << x << '/ n' 4.C language assert () This macro is in #include