← 返回列表

Defined() 操作符

Defined() 操作符 #include <stdio.h> #if !defined (MESSAGE) #define MESSAGE "You wish!" #endif int main(void) { printf("Here is the message: %s\n", MESSAGE); return 0; }

Defined() 操作符

#include <stdio.h>



#if !defined (MESSAGE)

   #define MESSAGE "You wish!"

#endif



int main(void) {

   printf("Here is the message: %s\n", MESSAGE);  

   return 0;

}

打开资源 ↗

交流与评论