can you explain how to chack all the char inside the array without check only the first and it says equal
for(j=0;j<len;j++)
{
if (letter==copywords[j])
{
//words[j]=copywords[j];
words[j]=letter;
cout << "good guess: " << words[j] << endl; //correct
}
else if(words[j]==copywords[j])) /problem
{
cout << "done!!!" << endl;
system ("pause");
exit(0);
}
else if(!letter) //here don' t go to else
{
count++;
hangman(count);
}
}