C#定义变量

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        # region 主程序
        static void Main(string[] args)
        {
            int myInteger;
            string myString;
            myInteger = 17;
            myString = "Hello C#";
            Console.WriteLine("{0} {1}",myInteger,myString);
            Console.ReadKey();
        }

        #endregion
    
    }
}

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2021-12-29
  • 2022-12-23
  • 2021-12-27
  • 2021-10-05
  • 2022-02-27
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-11-23
  • 2022-12-23
  • 2022-02-24
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案