update
This commit is contained in:
33
source/_posts/c-first-in-first.md
Normal file
33
source/_posts/c-first-in-first.md
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
title: C# 入门
|
||||
categories: 学习
|
||||
tags: C#
|
||||
abbrlink: bc56f789
|
||||
date: 2025-08-15 09:56:17
|
||||
---
|
||||
今天开始学习C#
|
||||
# 环境安装
|
||||
下载Visual Studio,社区版就可以
|
||||
{% link Visual Studio,Visual Studio,https://visualstudio.microsoft.com/zh-hans/downloads/ %}
|
||||
下载的是安装器选择.Net桌面开发,注意修改安装位置
|
||||
<center><img src="https://pic.biss.click/i/2025/08/15/776813.webp" alt=".Net 桌面开发"></center>
|
||||
|
||||
# 第一个程序
|
||||
```c#
|
||||
using System;
|
||||
namespace HelloWorldApplication
|
||||
{
|
||||
/* 类名为 HelloWorld */
|
||||
class HelloWorld
|
||||
{
|
||||
/* main函数 */
|
||||
static void Main(string[] args)
|
||||
{
|
||||
/* 我的第一个 C# 程序 */
|
||||
Console.WriteLine("Hello World!");
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
这也是一个默认的格式
|
||||
Reference in New Issue
Block a user