I am creating a small program (that later is going to be put into a function)
that takes any five digit number, and converts it into an apvector, where
each location of the apvector is a digit of the original five digit number.
I only have one error that I would love to get rid of! Here's the code...
you can either post on here or message me on AIMER (TremoR 76), please do
not email me unless you have no choice :)

Here's the code:


#include <iostream.h>
#include "apvector.h"


int main()
{

apvector<int> codeDecipher(5, 0);
int number, i;


cout << "Enter a five digit number: ";
cin >> number;

for (i = 4; i >=0; i--)
{
codeDecipher[i] = ((number % pow(10, i + 1) - (number % pow(10, i)) / pow(10,
i);
cout << codeDecipher[i];
}

return 0;
}