How to use the built-in debugger macro in C++
This article mainly shows you "how to use the built-in debugger macro in C++". The content is simple and clear. I hope it can help you solve your doubts. Now let the editor lead you to study and learn the article "how to use the built-in debugger macro in C++".
Use the built-in debug macro
In the process of program debugging, you often want to know which module is currently running, which function is smaller, which line is in the source file, and so on. If you add this information manually, it will undoubtedly put a great burden on programmers. Therefore, C++ provides several macros, _ _ FILE__, _ _ FUNCTION__, and _ _ LINE__, which you can use to "automatically" get information about modules, functions, and lines. Examine the following procedure.
# include using namespace std;void func1 () {cout