类型转化:float -> DWORD
摘要:
#include<iostream>#include<windows.h>using namespace std;int main(void){float f = 1.1 ;DWORD d1 = (DWORD)f ;DWORD d2 = *(DWORD *)&f ;cout << d1 << endl ; // output: 1cout &... 阅读全文
posted @ 2010-01-22 11:57 前端风云志 阅读(1570) 评论(0) 推荐(0)
浙公网安备 33010602011771号