#ifdef、#ifndef、#define与#endif的使用

    技术2022-05-20  51

    #include "stdio.h"

    //#define WINDOWS  3   //执行条件 

     #ifndef WINDOWS#define type  2#else #define type 5 #endif

    int main() {  int i=type; int y=0;    printf("%d/n",i);  scanf("%d/n",y);// //system("pause");    return 0; }


    最新回复(0)