#include <stdio.h> #define NUM -1 int main(int argc, const char * argv[]) { #if NUM > 0 printf("NUM大于0"); #elif NUM == 0 printf("NUM等于0"); #else printf("NUM小于0"); #endif return 0; }
#include <stdio.h> #define NUM -1 int main(int argc, const char * argv[]) { #if NUM > 0 printf("NUM大于0"); #elif NUM == 0 printf("NUM等于0"); #else printf("NUM小于0"); #endif return 0; }