Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void function(char* crossword,int size,char** dictionary)
- {
- int k = -1;
- for (size_t i = 0; i < size-1; i++)
- {
- if (isLetter(crossword[i]) && isLetter(crossword[i+1]))
- {
- k++;
- char word[40];
- int j = 0;
- word[j] = crossword[i];
- i++;
- j++;
- word[j] = crossword[i];
- i++;
- j++;
- while (i < size && isLetter(crossword[i]))
- {
- word[j] = crossword[i];
- j++;
- i++;
- }
- for (size_t t = 0; t < j; t++)
- {
- dictionary[k][t] = word[t];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement