作者:-依小冷_217 | 来源:互联网 | 2024-10-26 20:38
题目涉及一个复杂的逻辑难题,恳请路过的大师们不吝赐教。具体问题出现在代码的`while`循环中,当`stream8_12.Position`属性被使用时,程序出现了意外的行为。希望有经验的专家能够提供指导,帮助解决这一棘手的问题。
问题
代码:
while (stream8_12.Position //126
{
var yyyy_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var MM_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var dd_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var hh_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var mm_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var ss_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var sd = Convert.ToString(stream8_12.ReadByte(), 16);
var zt =Convert.ToString(stream8_12.ReadByte(), 2).PadLeft(8, '0');
DataRow tempSix = resultDtListSix_12.NewRow();
tempSix[0] = "20" + statr_yyyy_08H + "-" + statr_MM_08H + "-" + statr_dd_08H + ":" + statr_hh_08H + ":" + statr_mm_08H + ":" + statr_ss_08H;
tempSix[1] = sd;
for (int ss = 0; ss )
{
tempSix[ss + 2] = zt[ss].ToString() == "0" ? "是" : "否";
}
}stream8_12 是流
规则
即这样的规则:
1 2 3 4 5 6 ~~~~~~~~~~~~~~~~~~126
127 128 129 130 131 132 ~~~~~~~252
253 254 255 256 257 258 259~~~~~~ 504
循环的时候 前面6个只循环一次
最佳回答
你想问啥问题?