ITeye博客

IntToDoubleTest

kanglecjr · 2009-07-06 11:26 · C# · C · Linq · C++ · C# · Markdown

隐式转换,通常 将 低类型 向 高类型 转换。


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

namespace IntToDoubleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            double k;
            int i = 5;
            k = i;
            Console.WriteLine("k={0}",k);
            Console.ReadKey();

        }
    }
}


结果: k=5

诚品服饰 英伦男装 无条件退换

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。