二。十。八。十六进制互转.docVIP

  • 0
  • 0
  • 约7千字
  • 约 10页
  • 2017-12-22 发布于河南
  • 举报
二。十。八。十六进制互转

二。十。八。十六进制互转 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 进制转换v1._0 { class XtoY { public int TwotoTen(int two) { int fanhui; int yu = two % 2; two = two / 10; if (two == 0) { return 1; } else { if (yu == 0) { return fanhui = TwotoTen(two) * 2; } else { return fanhui = TwotoTen(two) * 2 + 1;

文档评论(0)

1亿VIP精品文档

相关文档