1、右键“解决方案资源管理器”对应的代码,打开Properties配置窗口;
2、在C++选项->general,选择
4、在preprocessor->preprocessor definitions加入ENABLE_DEBUG宏