AI正在绞尽脑汁想思路ING···
BiのAI摘要
HunYuan-Lite

今天开始学习C#

环境安装

下载Visual Studio,社区版就可以

下载的是安装器选择.Net桌面开发,注意修改安装位置

.Net 桌面开发

第一个程序

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
namespace HelloWorldApplication
{
/* 类名为 HelloWorld */
class HelloWorld
{
/* main函数 */
static void Main(string[] args)
{
/* 我的第一个 C# 程序 */
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}

这也是一个默认的格式