![Quote](https://cboard.cprogramming.com/images/misc/quote_icon.png)
Originally Posted by
laserlight
You mentioned string input, but it looks like you intended integer input.
When I past the code it seems it added extra lines. The issue seems to be here.
Code:
printf("\n Title name: ");
scanf("%s", &books[i].title);
Also, the code doesn't perform anything else after getting the input.
EDITED:
Ok, so after a needed break from being hours looking at this I understood the difference between having & and not having it when getting a string input. I took it out from the example above. But the program now crashes.