首页 > 其他 > 详细

第一个输出程序 Console.WriteLine

时间:2015-11-20 06:54:29      阅读:249      评论:0      收藏:0      [点我收藏+]

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

namespace _01个程序
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("************************");

      // WriteLine输出字符并将光标移到下行,Write输出字符但光标不移动到下行
      Console.WriteLine("* 这是我第一个C#程序 *");
      Console.WriteLine("************************");
      Console.WriteLine("典菲菲反\"\"对丰富");

      // ""在字符中如何显示 \"
      Console.ReadKey();
    }
  }
}

 

运行效果:

技术分享

第一个输出程序 Console.WriteLine

原文:http://www.cnblogs.com/start-from-scratch/p/4979626.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!