generated from freudenreichan/info2Praktikum-Wortsalat
Compare commits
No commits in common. "ff8384e9eec8ffa1ca86cfa559ce73fb7d3a886d" and "249298afc631a3ede8f76bffcdd0e8c2d0ea851d" have entirely different histories.
ff8384e9ee
...
249298afc6
@ -26,8 +26,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
salad[i][j] = '.'; //Füllen des gesamten Arrays mit Nullen
|
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]);
|
wordLength = strlen(words[i]);
|
||||||
|
|
||||||
@ -83,7 +82,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
{
|
{
|
||||||
for (int j = 0; j < wordLength; j++)
|
for (int j = 0; j < wordLength; j++)
|
||||||
{
|
{
|
||||||
salad[reihe+j][spalte] = words[i][j];
|
salad[row+j][collumn] = words[i][j];
|
||||||
}
|
}
|
||||||
added=1;
|
added=1;
|
||||||
addedWords++;
|
addedWords++;
|
||||||
|
|||||||
BIN
Start_Windows/game.o
Normal file
BIN
Start_Windows/game.o
Normal file
Binary file not shown.
Binary file not shown.
BIN
Start_Windows/runTests2.exe
Normal file
BIN
Start_Windows/runTests2.exe
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user