forked from freudenreichan/info2Praktikum-Wortsalat
27.10 änderung nach test
This commit is contained in:
1 parent
12464e4152
commit
a1930fa74e
8 files changed
+3
-3
No files matched your search
@@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
int x = rand() % searchFieldLen;
|
||||
int y = rand() % searchFieldLen;
|
||||
|
||||
if (horizontal = 1)
|
||||
if (horizontal = !NULL)
|
||||
{
|
||||
if (x + wordlength > searchFieldLen) // word does not fit
|
||||
{
|
||||
@@ -53,7 +53,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
}
|
||||
}
|
||||
|
||||
if (fits = 1)
|
||||
if (fits = !NULL)
|
||||
{
|
||||
for (int i = 0; i < wordlength; i++)
|
||||
{
|
||||
@@ -81,7 +81,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (fits = 1)
|
||||
if (fits = !NULL)
|
||||
{
|
||||
for (int i = 0; i < wordlength; i++)
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user