Using an array, problem

This is a discussion on Using an array, problem within the C++ Programming forums, part of the General Programming Boards category; I misunderstood my assignment earlier. I now understand for the part with :
The smallest digit: 0
Digit 1 can ...

I just provided him with algo and not the code...
Anyways, i don't think that this simple solution is that tough for him/her to think.... May be he/she is in wrong direction so that was just to put him/her in the right direction....

Introduce two variables in the start of your program....
Code:
int index_Lower=0;
int index_Larger=0;
inside if's(), assign the value of i to these and you will get your answer....
Print the value of these two variables in the end....
Good luck...

Thanks, I found that out, but can I still apply this if the number is printed out on multiple indexes?

*shrug* Notice how a digit can appear in more than one number in the list. That means in order to display all the places such a digit occurs in the list, you may also need to efficiently store that information. Pointers don't really mean anything here, unless they point to dynamic allocations or something.