char review [MAXSTRING][MAXLINES];
, C- .
C- review[index], 0 MAXSTRING-1
So
scanf("%s",review)
- , C- , :
scanf("%s",review[index]);
MAXLINES-1, scanf:
fgets(review[index], MAXLINES, stdin);
review struct bookR.
strcpy(k->b->review,review[MAXSTRING]);
strcpy(k->b->review[index],review[MAXSTRING-1]);
, strcpy : , Undefined .
:
test.c:666:45: warning: declaration does not declare anything
enum genres{fiction,scientific,politics};
^
, , struct bookR, :
char review [MAXLINES][MAXSTRING];
, , prinf ans scanf/fgets.
printf ("Give the author: ");
fgets(author, MAXSTRING, stdin);
printf ("Enter id: ");
scanf("%d",&id);
printf ("Enter review of the new book respectively: ");
fgets(review[index], MAXSTRING, stdin);