generated from freudenreichan/info2Praktikum-Wortsalat
game, ctype hinzugefügt, punkt von string als char gewechselt
This commit is contained in:
parent
ec4b32c2a5
commit
c4b0ef5427
@ -2,6 +2,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
||||||
#define MAX_RAND_TRIES_PER_WORD 10
|
#define MAX_RAND_TRIES_PER_WORD 10
|
||||||
#define EMPTY_CHAR 0
|
#define EMPTY_CHAR 0
|
||||||
@ -25,7 +27,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
{
|
{
|
||||||
for(int n = 0; n < searchFieldLen; n++) //n Spalte
|
for(int n = 0; n < searchFieldLen; n++) //n Spalte
|
||||||
{
|
{
|
||||||
salad[m][n] = ".";
|
salad[m][n] = '.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user