#if 0             //如果条件为真执行下面代码,如果为假不执行,这里0为假
#include <stdio.h>

int main()
{
	return 0;
}
#endif //结束if宏定义

#define _DEBUG_ 0 //定义_DEBUG_

#include <stdio.h>

int main()
{

	printf("this is a test\n");
	int i = 0;
	int arr[100];
	for (i = 0; i < 100; i++)
	{
		arr[i] = 100 - i;
//#if 0   //跟endif配套使用
//#ifdef _DEBUG_    //跟下面两种表示方法一样
//#if defined(_DEBUG_)//同上
#if _DEBUG_    //只要_DEBUG_被定义后面的程序就会被执行,前面就定义了_DEBUG_,所以下面程序将会执行
		if (i == 10)
		{
			printf("%d\n", arr[i]);
		}
#endif
//#endif
	}
	system("pause");
	return 0;
}