// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstring>

using namespace std;

int main()
{
   char *s = "\x33\x44\x55";
   printf("%s\n",s);
   cout << s << endl;
   for(int i=0; i<strlen(s); i++) printf("%02X",(unsigned char)s[i]);
   printf("\n");
   cout.width(2);
   cout.flags(ios::hex);
   for(int i=0; i<strlen(s); i++) cout << (int)(unsigned char)s[i];
   cout << endl;
   return 0;
}
