Salut..i was wondering how to use a loop in order to store values every time. For instance i have this code:
[code]
const int max=5;
int a[max];
for(int i=0;i<max;i++)
{
a[i]=1;
}
when user type something(num or string), then i want the first element of the array to become 1 etc..and when user type the same thing the second element become 1...etc
how to do that?