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

#include <iostream>
using namespace std;

#define DEBUGSWITCH 1


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

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

	return 0;
}

posted on 2013-08-13 19:33  Yours风之恋  阅读(290)  评论(0编辑  收藏  举报