#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<char> buf({ 0x01,0x00,0x00,0x00,0x0A,0x01,0x00,0x00 });
int d1, d2;
memcpy(&d1, &buf[0], 4);
memcpy(&d2, &buf[4], 4);
cout << d1 << d2;
system("pause");
return 0;
}