Fairly new with C++ and I have a question on checking 2 char array's to see if they match. I have the user input an 'eye' color which is eye, and then it compares it to 'e' which is read in from an external file to see if they match or not.
My other bool functions work, but this is the only one working with char arrays.
error msg: expected primary-expression before ']' token.

Here is my code.

Code:
<script c++>

bool testEye(char eye[], char e[])
{
     if(strcmp(eye[],e[]))
        return true;
     else
        return false;
}
</script c++>