執行"檔案"->新增專案->點選"主控台應用程式"

Key入

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

namespace ConsoleApplication1
{
    class Program
    {
    static void Main(string[] args)
    {
    Console.Write("Hello C#!!");
    Console.WriteLine("接著~");
    Console.WriteLine("新的一行");
    Console.Read(); //按Enter結束
    }
    }
}

按F5執行




輕輕鬆鬆就完成你的第一個程式了!做看看吧!!

文章標籤
全站熱搜
創作者介紹
創作者 Alvin 的頭像
Alvin

我的IT學習日誌

Alvin 發表在 痞客邦 留言(0) 人氣(30)