C++ 用条件编译 控制开发过程中输出调试信息

#include <iostream>
using namespace std;

#define DEBUGSWITCH 1


int main() {
	
	cout << "Hello World !!!" << endl;

#if DEBUGSWITCH
	cout << "Debug Info" << endl;
#endif

	return 0;
}

原文地址:https://www.cnblogs.com/wjchang/p/3671512.html