我能否把一个点子放在“条码”(<>条/条码>)的两倍上,然后使用这个点子把双倍打成 by子?
这里的例子有:
double data;
double *dblPoint = &data;
unsigned char *bytePoint = (unsigned char *)dblPoint;
unsigned char byteArray[sizeof (double)];
unsigned int i;
for(i = 0; i < sizeof(double); i++) {
byteArray[i] = *(bytePoint + i);
}
<条码> 其后,通过紫外线转轨机向另一台计算机转播(<>条码>接收<>。 载有新数据:
unsigned char bytesReceived[sizeof (double)];
double reconstData;
double *newDblPoint;
unsigned int i;
newDblPoint = bytesReceived;
reconstData = *dblPoint;
因此,在所有这一切之后,<代码>数据 == reconstData?