Current location - Training Enrollment Network - Books and materials - How to write the library management program?
How to write the library management program?
# include & ltstdio.h & gt

# include & ltctype.h & gt

# include & ltstring.h & gt

# include & ltstdlib.h & gt

//Definition? That? Attribute? Yes? That? Fields? Used? Are you online? That? procedure

# Definition? Are you online? 1

# Definition? Out? 0

Invalid? addbook();

Invalid? search book();

Invalid? Display book ();

Invalid? Author ();

Invalid? title list();

Invalid? Stock ();

Invalid? issue();

Invalid? bookret();

Invalid? add membr();

Invalid? exit();

Charles? info[500];

Structure

{

int? Bid;

Charles? bname[25]? ;

Charles? Author [25];

int? nooftitles

Charles? Title [500];

int? Status;

} book;

Structure

{

int? mid

Charles? mname[25]? ;

Charles? Department [25];

int? availibcard

int? phno

} membr

//Initializing? That? Documents? Used? Are you online? That? procedure

Documents? :: Library records;

Documents? * membrrecord

Documents? * FP 1;

Documents? * fp2

Documents? * temp 1;

Documents? * temp2

int? Master ()

{?

int? choice=0,I;

printf(" \ n \ t \ t & lt; & lt library? Management? System & gt& gt(Beta? Version? )? \ n ");

Do {

Printf(" \ n \ t ~ ~ menu ~~\n? 1 & gt; ? Supplement? Answer? New? Book \n? 2 & gt? Search? Answer? Books? \n? 3 & gt? Show? Complete? Information \n? 4 & gt? Show? All of them? Books? Yes? Ann? Author \n? 5 & gt? List? Title? Yes? Answer? Book \n? 6 & gt? List? Count? Yes? Books? (issued? & amp? Open? Stock) \n? 7 & gt? Where to? Question? Answer? Books? \n? 8 & gt? Where to? Return? Answer? Books? \n? 9 & gt? Supplement? Answer? New? Member \n? 10 >? Quit That? Program \n\n\t? Enter? Yours Choice? & lt 1- 10 & gt; :?" );

Scanf("%i ",& select);

Switch? (select)

{?

Case? 1:

addbook();

Break;

Case? 2:

search book();

Break;

Case? 3:

Display book ();

Break;

Case? 4:

Author ();

Break;

Case? 5:

title list();

Break;

Case? 6:

Stock ();

Break;

Case? 7:

issue();

Break;

Case? 8:

bookret();

Break;

Case? 9:

add membr();

Break;

Case? 10:

exit();

Default value:

printf("? ! ? Invalid? Input ... \ n ");

}

}while (choose! = 10);

Return? (0);

}

//The number of words is out of range. Please check the attachment.