Can anyone help me with my library catalog C program?
问题 I need to use BST and file handling but I'm stuck with this one because the displayCatalog function doesn't seem to work. I want to establish the struct first before I print it to the file. How do I go about this? #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<Windows.h> typedef struct book catalog; FILE *fx,*fy; struct book{ char title[20]; char author[20]; int isbn[15]; char genre[10]; char publisher[20]; int year[5]; char synopsis[100]; catalog *left;