Hi,
I'm new to programming, I need to find the mode of integers from sorted array,
I don't get the logic behind this, in other words I can display the numbers
But I can't compare the nombers next to each other...
Here is what I have so far, any help will be appreciated...
Thank you,
JB
----------------------
void mode(int array[99], int count)
{
int track, temp;
track=0;
count=0;
cout<<"\nMODE List "<<array[count];
cout<<endl;
for (int i=1; i<=count; i++)
{
if (array[i]==array[i+1])
track++; //HERE i'm trying to track how many times I find the number
else (i==i+1);
cout<<"\n TRACK "<<track; //small test to see if it works
// cout<<list[count+1];
}
