📜  #ifdef in c - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.451000             🧑  作者: Mango

代码示例1
#include 
#define YEARS_OLD 10

int main()
{
   #ifdef YEARS_OLD
   printf("TechOnTheNet is over %d years old.\n", YEARS_OLD);
   #endif

   printf("TechOnTheNet is a great resource.\n");

   return 0;
}