hi all.

i want to output to the screen a number.

long int counter;

i don't want to do it with

cout<<counter;

istead i want to use a

int matrix[16];

each matrix[i] will have a digit of counter.
but i cannot make the programm work. this is my program

#include<iostream.h>

void main()
{
long int counter=464272572;
int mat[12],i;

i=0;
while(counter!=0)
{
mat[i]=((float)(counter/10)-(int)(counter/10));
counter/=10;
i++;
}

while(i!=0)
{
cout<<mat[i];
i--;
}
}
can anyone help? thanks.

regards, bill