分享

C# 第一天代码

 雪柳花明 2016-08-21
1、代码一:实现输出一行字符串

目的:熟悉Console.WriteLine("你要显示的内容");
   熟悉:Console.ReadKey();
Console.ReadKey();
   1)、暂停当前程序,等待用户按下任意键继续,按下的任意键将显示在我们的控制台当中

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01_My_Frist_Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("This is My First  Demo");
            Console.ReadKey();
        }
    }
}

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多