fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. int i = 0;
  7. unsigned int byte;
  8. unsigned char Memory[50];
  9. cin >> skipws; // Skip Whitespace
  10. while (cin >> hex >> byte) {
  11. Memory[i++] = byte;
  12. }
  13. for (int j = 0 ; j != i ; j++) {
  14. cout << hex << (int)Memory[j] << " ";
  15. }
  16. cout << endl;
  17. return 0;
  18. }
Success #stdin #stdout 0s 3144KB
stdin
05 00 e0 3a 12 16 00 ff fe 98 c4 cc ce 14 0e 0a aa cf
stdout
5 0 e0 3a 12 16 0 ff fe 98 c4 cc ce 14 e a aa cf