// 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 <string>

#include <stdlib.h>

using namespace std;

int main()
{
   char tmp[2];
   int tal[6];
   tal[0]=5;
   tal[1]=7;
   tal[2]=0;
   tal[3]=6;
   tal[4]=4;
   tal[5]=0;
   string is = "";
   for(int j=0;j<6;j++) is = is + itoa(tal[j],tmp,10);
   int i = atoi(is.c_str());
   cout << i << endl;
   return 0;
}
