//public string getBinary(int theNum)
//{
// StringBuilder sb = new StringBuilder();
// while (theNum!= 0)
// {
// sb.Append((theNum%2));
// theNum = theNum / 2;
// }
// return sb.reverse().ToString();
//}用c#写了个,公司电脑没有eclipse没jdk。。。。
![[汗]](/static/emoticons/u6c57.png)
你理解一下 10进制转2进制的函数