摘要:
class Program { public enum ProjectStatus { Received = 256, Checked = 128, Exam = 64, Null = 32, ReChecked = 16, MasterChecked = 8, ReportChecked = 4, ReportPrinted = 2, Finished =... 阅读全文
posted @ 2012-08-31 12:14
黑冰.org
阅读(698)
评论(0)
推荐(0)
摘要:
CREATE FUNCTION BinaryToDec (@BinaryChar char(10)) RETURNS int AS BEGIN DECLARE @stringLength int,@ReturnValue int,@Index int DECLARE @CurrentChar char(1) SET @Index = 0 SET @ReturnValue = 0 SET @stringLength = LEN(@BinaryChar) While @Index<@stringLength BEGIN ... 阅读全文
posted @ 2012-08-31 12:04
黑冰.org
阅读(4104)
评论(0)
推荐(0)
摘要:
//十进制转二进制 Console.WriteLine(Convert.ToString(69, 2)); //十进制转八进制 Console.WriteLine(Convert.ToString(69, 8)); //十进制转十六进制 Console.WriteLine(Convert.ToString(69, 16)); //二进制转十进制 Console.WriteLine(Convert.ToInt32(”100111101″, 2)); //八进制转十进制 Console.WriteLine(Convert.ToInt32(”76″, 8)); //十六进制转十进制 Cons... 阅读全文
posted @ 2012-08-31 11:29
黑冰.org
阅读(307)
评论(0)
推荐(0)