Access over 20 million homework & study documents
search

Design an electronic library system struct book{ int idbook id

Content type

User Generated

Rating

Showing Page:
1/40
Design an electronic library system. struct book{ int
id://book id char name[30]://book name, end with 0 to
make a string}; book books[10];//we have 10 books struct
member{ int id://member id char name[30]://member
name}; member members[5]://5 members quit, book
show, book change, book remove, book insert, member
show, member change, member remove, member insert,
borrow, return. Store the book and member information to
the \"book.txt\" and \"member.txt\" file Store the borrow
and return information to the \"manage.txt\" file.
Solution
#include <windows.h>
#include<stdio.h>
#include<conio.h> //contains delay(),getch(),gotoxy(),etc.
#include <stdlib.h>
#include<string.h> //contains strcmp(),strcpy(),strlen(),etc
#include<ctype.h> //contains toupper(), tolower(),etc
#include<dos.h> //contains _dos_getdate
#include<time.h>
#define RETURNTIME 15
//list of function prototype
char
catagories[][15]={\"Computer\",\"Electronics\",\"Electrical\",

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/40
\"Civil\",\"Mechnnical\",\"Architecture\"};
void returnfunc(void);
void mainmenu(void);
void addbooks(void);
void deletebooks(void);
void editbooks(void);
void searchbooks(void);
void issuebooks(void);
void viewbooks(void);
void closeapplication(void);
int getdata();
int checkid(int);
int t(void);
//void show_mouse(void);
void Password();
void issuerecord();
void loaderanim();
COORD coord = {0, 0}; // sets coordinates to 0,0
//COORD max_buffer_size =
GetLargestConsoleWindowSize(hOut);
COORD max_res,cursor_size;
void gotoxy (int x, int y)
{
coord.X = x; coord.Y = y; // X and Y coordinates

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/40

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 40 pages?
Access Now

Unformatted Attachment Preview

Design an electronic library system. struct book{ int id://book id char name[30]://book name, end with 0 to make a string}; book books[10];//we have 10 books struct member{ int id://member id char name[30]://member name}; member members[5]://5 membe rs quit, book show, book change, book remove, book insert, member show, member change, member remove, member insert, borrow, return. Store the book and member information to the \"book.txt\" and \"member.txt\" file Store the borrow and return information to the \"manage.txt\" file. Solution #include #include #include //contains delay(),getch(),gotoxy(),etc. #include #include //contains strcmp(),strcpy(),strlen(),etc #include //contains toupper(), tolower(),etc #include //contains _dos_getdate #include #define RETURNTIME 15 //list of function prototype char catagories[][15]={\"Computer\",\"Electronics\",\"Electrical\", \"Civil\",\"Mechnnical\",\"Architecture\"}; void returnfunc(void); void mainmenu(void); void addbooks(void); void deletebooks(void); void editbooks(void); void searchbooks(void); void issuebooks(void); void viewbooks(void); void closeapplication(void); int getdata(); int checkid(int); int t(void); //void show_mouse(void); void Password(); void issuerecord(); void loaderanim(); COORD coord = {0, 0}; // sets coordinates to 0,0 //COORD max_buffer_size = GetLargestConsoleWindowSize(hOut); COORD max_res,cursor_size; void gotoxy (int x, int y) { ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Great study resource, helped me a lot.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4