使用軟體: Visual c# 2008 Express
宣告 字串/整數/浮點數 變數,初始化並且輸出於主控台
------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class UsingVariable
    {
        static void Main()
        {
            char strMyString = 'a' ;
            int intMyInt = 123 ;
            float fMyFloat ;
            Console.WriteLine(strMyString) ;
            Console.WriteLine(intMyInt) ;
            fMyFloat = 123.456f ;
            Console.WriteLine(fMyFloat) ;
            Console.ReadLine();
        }
    }
}
UsingVariable
標籤: C#
訂閱:
張貼留言 (Atom)
 
 發表文章
發表文章
 
 


0 意見:
張貼留言