generated from freudenreichan/info2Praktikum-Wortsalat
Compare commits
2 Commits
249298afc6
...
ff8384e9ee
| Author | SHA1 | Date | |
|---|---|---|---|
| ff8384e9ee | |||
| cbf834ab76 |
@ -26,7 +26,8 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
salad[i][j] = '.'; //Füllen des gesamten Arrays mit Nullen
|
||||
}
|
||||
}
|
||||
for (int i=0; i < wordCount; i++) {
|
||||
for (int i=0; i < wordCount; i++)
|
||||
{
|
||||
|
||||
wordLength = strlen(words[i]);
|
||||
|
||||
@ -82,7 +83,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
{
|
||||
for (int j = 0; j < wordLength; j++)
|
||||
{
|
||||
salad[row+j][collumn] = words[i][j];
|
||||
salad[reihe+j][spalte] = words[i][j];
|
||||
}
|
||||
added=1;
|
||||
addedWords++;
|
||||
|
||||
Binary file not shown.
BIN
Start_Windows/main.o
Normal file
BIN
Start_Windows/main.o
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user