zoukankan      html  css  js  c++  java
  • C#预处理指令

    #define

    #undef

    #if

    #else

    #elif(else if 的简写)

    #endif

    定义和不定义(#define、#undef)必须加在最开头

    #define abc (要在所有非预处理指令的前面,包括命名空间)

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

    namespace ConsoleApplication1

    {    

      class Program    

      {                

        static void Main(string[] args)        

        {

    #if abc            

          Console.WriteLine("abc");   

    #endif            

          Console.ReadLine();

              }    

      }

    }

    输出abc

  • 相关阅读:
    数据应用
    Python邮件脚本
    函数
    tab模块
    python登陆,注册小程序
    三元运算+lambda表达式
    计算机基础
    软件测试概要
    asyn_fifo
    perl 对ENV环境变量的使用
  • 原文地址:https://www.cnblogs.com/wos1239/p/4359554.html
Copyright © 2011-2022 走看看