To turn a number in ascii in any base in c i would use sprintf. Whats the c++ equivelent?