using System;

namespace c  // 在 c 資料夾
{
    class MainClass
    {
        public static void Main (string[] args)
        {

            Console.Write ("請輸入一個字元");
            Console.WriteLine (" u 碼為:" + Console.Read());

 

            Console.ReadLine(); // 暫停,沒寫則會很快關閉程式
        }
    }
}

 

//  Console.Write()  輸出完,游標會提在結尾

//  Console.WriteLine()  輸出完,游標會停在新的一行

//  Console.Read()  讀入一個字元(u碼),如果是字串則會讀取第一個

arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()