OJ-Problems-Source/HDOJ/1265_autoAC.cpp

19 lines
300 B
C++
Raw Normal View History

2016-08-13 17:16:08 +08:00
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
using namespace std;
int main()
{
char s[20];
float d;
long x,n;
scanf("%d",&n);
while(n--){
scanf("%f",&d);
memcpy(&x,&d,4);
printf("%X\n",x);
}
return 0;
}