c# 实现hello word 详解版

c# 实现hello word 详解版

前言:超级适合真正零基础的人
工具:Visual Studio 2019
了解:
.net/dotnet:一般指.Net Framework框架—>一种平台,一 种技术。
C#(sharp):一种编程语言,可以开发基于.net平台的应用。
1、新建项目
在这里插入图片描述
在这里插入图片描述
2、在控制台打印输出hello word
在这里插入图片描述
3、运行代码
快捷键:F5

按运行按钮 如图
在这里插入图片描述
4、运行结果如下图
在这里插入图片描述
5、代码

using System;

namespace helloWod
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hello word 01");  // 在控制台换行输出
            Console.Write("hello word 02");  // 在控制台不换行输出
            Console.Write("hello word 03");
            Console.ReadKey();  // 让程序暂停,等待用户按下任意键
        }
    }
}

注:持续更新学习笔记,一起学习。

发布了5 篇原创文章 · 获赞 5 · 访问量 239

猜你喜欢

转载自blog.csdn.net/RuiHe_pan/article/details/105426150