110,534
社区成员
发帖
与我相关
我的任务
分享
int i = int.Parse(a);
byte[] buf = new byte[];
int j = i/256;
for(int cnt=1;cnt < int.MaxValue;cnt++)
{
if(j>256)
{
buf[cnt-1]=i/(256*cnt)
j=j/256
}
else
{
buf[cnt-1]=j%(256*cnt)
break;
}
}