zoukankan      html  css  js  c++  java
  • C语言常用宏的使用

    #ifdef UAC_INIT
    
    #endif
    
    
    #if defined(__UAC_INIT) || defined(__UVC_INIT)
    
    #endif 
    
    #define ARRAY_SIZE(a) ((sizeof(a) / sizeof(a[0])))
    
    
    do
    {
    
        
    }while(0);
    

      

    #include <stdio.h>
    #include <stdlib.h>
    
    //#define __UAC_INIT
    #define ARRAY_SIZE(a) ((sizeof(a) / sizeof(a[0])))
    //#define __UVC_INIT
    
    static int  init(void)
    {
        do
        {
            if(1)
            {
              printf("MMMMMMMM
    ");
              break;
            }
    
            if(2)
            {
              printf("Init 
    ");
            }
    
        }while(0);
        printf("Init Back
    ");
    
        return 0;
    }
    
    int main()
    {
    
    #ifdef UAC_INIT
        printf("UAC INIT
    ");
    #endif // UAC_INIT
    
    #if defined(__UAC_INIT) || defined(__UVC_INIT)
        int B[10];
        printf("Hello world is %u
    ",ARRAY_SIZE(B));
    #endif // UAC_INIT
        init();
        getchar();
        return 0;
    }
    

      

    一勤天下无难事。
  • 相关阅读:
    Friends ZOJ
    2^x mod n = 1 HDU
    Paint the Grid Reloaded ZOJ
    Treap 模板
    bzoj进度条
    。。。
    bzoj
    。。。
    bzoj
    题解continue
  • 原文地址:https://www.cnblogs.com/nowroot/p/13675207.html
Copyright © 2011-2022 走看看