C#基本语法结构

阅读 115

2023-01-31


语言基本语法结构

//命名空间的引用
using System;

//当前命名空间的命名
namespace HelloWorldApplication
{
/* 类名为 HelloWorld */
class HelloWorld
{
/* main函数 */
static void Main(string[] args)
{
/* 方法体 */
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}


精彩评论(0)

0 0 举报