c#写一个完整的控制台应用程序,在屏幕输出“hello world”

如题所述

1、实现的代码如下。

2、打开:生成的程序.(写好代码后要点击生成程序)。

3、在bin\Debug目录下.exe程序为执行应用程序。

4、设置VS中字体大小点击确定。

5、行号的显示:工具--》选项,就完成了。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-06-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("hello world!");
            Console.ReadLine();
        }
    }
}

本回答被网友采纳
第2个回答  2014-06-10
Console.Readline("hello world");
Console.ReadKey();
相似回答