I won't write it for you, but if you are going to use arrays of chars, I can re-write the steps being more specific:
-Test the length of the first value to show. If you have it in numeric form (stored in an int or similar), then
totalDigits = log10(number) + 1;
will tell you the number of digits.
-If you have the number in numeric form, convert to string. The C++ way of doing this is to use an ostringstream; a non-standard way would be to use itoa(), itow(), or the generic _itot() if you are using TCHAR's.
-Prepend the number of zeroes required to obtain the desired width. You can start the string inside a buffer char array and the strncpy() function, and then you add more zeroes or the value with strncat().
-Repeat for the other two values.
An alternative, if you are using std::cout to display the values, is to set character zero ('0') as the fill character of cout using fill()
cout.fill() = '0';
and then setting the cout's width to 2 or whatever width you desire (pretty much the same as fill()), and then you will see that your output automatically comes with padding zeroes. I am hoping the padding zeroes will go to the right, but if not, try setting the alignment using cout.setf().
See
http://www.cplusplus.com/reference/iostream/ostream/ for help using cout and streams in general.