Posts

Showing posts from June 2, 2019

Projects

Image
Library Management System #include<stdlib.h> #include<iostream.h> #include<string.h> #define MAX    100 class bookEntry{ public:     int copies;     char name[30];     char author[30]; }; class library{ public:     int numBooks;     bookEntry database[MAX];     library(){         numBooks = 0;     }     void insertBook( char bookName[], char author[], int c);     void deleteBook( char bookName[]);     bookEntry *search( char bookName[]); }; void library::insertBook( char bookName[], char author[], int c){     strcpy( database[numBooks].name, bookName);     strcpy( database[numBooks].author, author);     database[numBooks].copies = c;     cout << "Book Inserted Successfully.\n";     ++numBooks; } void library::deleteBook( char bookName[]){  ...