while(std::getline(file, line)) { words[i] = new char[line.length()]; for(int j = 0; j < line.length(); ++j) { words[i][j] = line[j]; } words[i][line.length()] = '\0'; ++i; }
bool compairing_words(char * guess, word ) { for(int i=0; i < word->length(); i++ ) { if(word[i]==guess) { return true; } return false; } }