Professional Documents
Culture Documents
Activity8 - Angeline Evangelista
Activity8 - Angeline Evangelista
h>
#include <string.h>
// Function declarations
struct Book initBook(char title[], char author[], char isbn[], int year);
void printBook(struct Book b);
int findBookByISBN(struct Book books[], int count, char isbn[]);
int countBooksAfterYear(struct Book books[], int count, int year);
int main() {
struct Book books[MAX_BOOKS];
int count = 0;
return 0;
}
strcpy(b.title, title);
strcpy(b.author, author);
strcpy(b.isbn, isbn);
b.year = year;
return b;
}