c'è la funzione ltoa(Long To Array) http://www.cplusplus.com/ref/cstdlib/ltoa.html