摘要:
(显示/隐式)转换编译器能够在基元类型之间进行隐式或显示转换 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Int32 i = 5;Int64 l = i; // 从Int32到Int64的隐式转换 如果两个类型之间的转换是"安全"的(安全是指... 阅读全文
posted @ 2007-05-10 22:45
蛤蟆
阅读(476)
评论(0)
推荐(0)
摘要:
定义枚举时可以指定基类型: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public enum AccountType : int{ Admin = 0, GM = 1, User = ... 阅读全文
posted @ 2007-05-10 22:05
蛤蟆
阅读(480)
评论(1)
推荐(0)
浙公网安备 33010602011771号