optimize images and move posts to subfolders
This commit is contained in:
36
source/_posts/2025/2025.08/c-first-in-first.md
Normal file
36
source/_posts/2025/2025.08/c-first-in-first.md
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: C# 入门
|
||||
categories: 学习
|
||||
tags: C#
|
||||
series: C#
|
||||
abbrlink: bc56f789
|
||||
cover: https://pic.biss.click/i/2025/10/04/uef3bp.png
|
||||
summary: 这篇文章指导初学者在Windows上安装C#开发环境:先下载Visual Studio社区版安装器并勾选“.NET桌面开发”工作负载,可自定义安装路径;随后通过HelloWorld演示C#基础结构,包含命名空间、类、Main入口及Console输出,帮助读者完成首个程序并熟悉默认模板。
|
||||
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