while( i < lineCount) {
current = 1;
while (nList[i-1] = nList[i]&& i < lineCount) {
current++;
i++;
if (current > highest);
highest = current;
arrayposition = i;
multiMode = false;
} else if(current == highest) {
multiMode = true;
}
i = i + 1;
}
if (multiMode == true)
return -1;
else return arrayposition;
The error points to the line
} else if(current == highest) {
reading "illegal else without matching if"
I have just started learning C++ and would appreciate any help you can offer, it's probably a simple mistake :o