This is a function to find a zero in an array and store the index of the element with the zero. Is this code correct because i have been testing it, and even when i know there's a zero in the element, it won't perform the if statement.
CODE
void draw(char deck[][COL], char hand[][COL])
{
int index, index2;
for(int x = 0; x < 8; x++)
{
target = hand[1][0];
if(target == 0)
{
index = x;
cout << "you have found the number.";
}
}