我试过这个:
request.DeviceID = (long long int *)&(DeviceID);
request.ProdReqID = (long long int *)&(ProdReqID);
但是当我这样做时:
cout << "DEVICE ID: " << request.DeviceID << " " << request.ProdReqID << " " << endl;
cout << "DEVICE ID: " << &request.DeviceID << " " << &request.ProdReqID << " " << endl;
我得到:
设备 ID:0xfffa9bf0 0xfffa9bf4 设备 ID:0xfffa9bd4 0xfffa9bd8
我真的不知道这是否有效。我希望看到实际数字的打印...