码迷,mamicode.com
首页 > 其他好文 > 详细

第一个输出程序 Console.WriteLine

时间:2015-11-20 06:55:24      阅读:275      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!