#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp;
unsigned int value = 0, tmp = 0;
fp = fopen("C:\\Users\\james732\\Desktop\\1.txt", "r");
fscanf(fp, "%X:", &tmp);
value += tmp;
value <<= 8;
fscanf(fp, "%X:", &tmp);
value += tmp;
value <<= 8;
fscanf(fp, "%X:", &tmp);
value += tmp;
value <<= 8;
fscanf(fp, "%X:", &tmp);
value += tmp;
printf("%08X, %d\n", value, value);
fclose(fp);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkKewogICAgRklMRSAqZnA7CiAgICB1bnNpZ25lZCBpbnQgdmFsdWUgPSAwLCB0bXAgPSAwOwoKICAgIGZwID0gZm9wZW4oIkM6XFxVc2Vyc1xcamFtZXM3MzJcXERlc2t0b3BcXDEudHh0IiwgInIiKTsKCiAgICBmc2NhbmYoZnAsICIlWDoiLCAmdG1wKTsKICAgIHZhbHVlICs9IHRtcDsKICAgIHZhbHVlIDw8PSA4OwoKICAgIGZzY2FuZihmcCwgIiVYOiIsICZ0bXApOwogICAgdmFsdWUgKz0gdG1wOwogICAgdmFsdWUgPDw9IDg7CgogICAgZnNjYW5mKGZwLCAiJVg6IiwgJnRtcCk7CiAgICB2YWx1ZSArPSB0bXA7CiAgICB2YWx1ZSA8PD0gODsKCiAgICBmc2NhbmYoZnAsICIlWDoiLCAmdG1wKTsKICAgIHZhbHVlICs9IHRtcDsKCiAgICBwcmludGYoIiUwOFgsICVkXG4iLCB2YWx1ZSwgdmFsdWUpOwoKICAgIGZjbG9zZShmcCk7CiAgICByZXR1cm4gMDsKfQo=