65,206
社区成员
发帖
与我相关
我的任务
分享int n=9;
double d=reinterpret_cast<double&> (n);//corrcet
double d=reinterpret_cast<double> (n);//wrong
cout<< d;struct A
{
int a;
};
struct B
{
operator A()
{
A temp;
temp.a=b;
return temp;
}
int b;
};
int main()
{
B b;
A a=static_cast<A>(b);
return 0;
} PPCI_BUS_INTERFACE_STANDARD pInterface = reinterpret_cast<PPCI_BUS_INTERFACE_STANDARD>(pIrpStack->Parameters.QueryInterface.Interface); typedef struct _PCI_BUS_INTERFACE_STANDARD {
/*0x000*/ UINT16 Size;
/*0x002*/ UINT16 Version;
/*0x004*/ VOID* Context;
/*0x008*/ PVOID InterfaceReference;
/*0x00C*/ PVOID InterfaceDereference;
/*0x010*/ PVOID ReadConfig;
/*0x014*/ PVOID WriteConfig;
/*0x018*/ PVOID PinToLine;
/*0x01C*/ PVOID LineToPin;
}PCI_BUS_INTERFACE_STANDARD, *PPCI_BUS_INTERFACE_STANDARD;FTimer* pTimer = reinterpret_cast<FTimer*>(pContext);