DIGITAL DIARY

//****************Digital Diary v15***************
//…………….HEADER FILES……………….. (…)

LIBRARY MANAGEMENT SYSTEM

//***************************************
//By ____________________               |
//My summer Project in C++              |
//***************************************
//**********************************************************
//    PROJECT BOOK LIBRARY
//**********************************************************
//**********************************************************
//    INCLUDED HEADER FILES
//**********************************************************
#include <iostream.h>
#include <fstream.h>
#include <process.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <conio.h>
#include <dos.h>
//**********************************************************
// THIS CLASS CONTROL ALL THE FUNCTIONS IN THE MENU
//**********************************************************
class MENU
{
public :
void main_menu(void) ;
void introduction(void) ;
private :
void edit_menu(void) ;
void edit_book(void) ;
void edit_member(void) ;
} ;
//**********************************************************
// THIS CLASS CONTAINS FUNCTIONS RELATED TO BOOKS
//**********************************************************
class BOOK
{
public :
void list(void) ;
char *bookname(int) ;
protected :
void add_new_book(int, char tname[33], char tauthor[26], float, int, int) ;
void update_copies(int, int, int) ;
void modify(int, char[], char[], float) ;
void deletion(void) ;
int  book_found(int) ;
int  bookname_found(char []) ;
int  recordno(int) ;
int  available(int) ;
char *authorname(int) ;
float bookprice(int) ;
int  no_of_copies(int) ;
int  bookcodeof(char[]) ;
void display(int) ;
int  reccount(void) ;
void delete_rec(int) ;
private :
int   bookcode, copies ;
char  name[33], author[26] ;
float price ;
int   avail ;
} ;
//**********************************************************
// THIS CLASS CONTAINS FUNCTIONS RELATED TO MEMBERS
//**********************************************************
class MEMBER
{
public :
void list(void) ;
protected :
void add_mem(int, int, char [], char [], char[], int, int, int) ;
void modify(int, char[], char[], char[]) ;
int  member_found(int) ;
void update_book(int, int, int, int, int) ;
char *membername(int) ;
char *memberphone(int) ;
char *memberaddress(int) ;
int  recordno(int) ;
int  lastcode(void) ;
int  issued(int) ;
int  fine(int) ;
void display(int) ;
void delete_rec(int) ;
private :
int  memcode, bookcode ;
char name[26], phone[10], address[33] ;
int  dd, mm, yy ;   // DATE OF RETURNING THE BOOK //
} ;
//**********************************************************
// THIS IS DERIVED FROM CLASS BOOK & MEMBER AND CONTAINS
// FUNCTIONS FOR WORKING (ISSUE,RETURN,ETC). (…)

A Program In C++ For displaying the Faculty Information

#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<fstream.h>
#include<dir.h>
#include<stdio.h>
#define xy(z) (8*(z-1))
// GLOBAL Funcions
void grap();
void intro();
void box();
void mainwindow();
void faculty();
void student();
void enterdata();
void personaldetial();
void admindetails(char *name);
void seeyearfaculty();
void fullaccessfaculty();
void modifyfaculty();
void deletefaculty();
void prin();
void enterdatast();
void personalst();
void academic(char *name);
void seetotalst();
void fullaccessst();
void modifyst();
void deletest();
void encrypt(char *name);
void closeprog();
void quit();
void typeme(int left,int top,const char *word,int interval);
// GLOBAL Variables
int option,pass,i,access,x,y,status;
char year[10],ch,name[100],temp[200],newfile[100],a[50],mod;
void *p;
size_t area;
void main()
{
grap();
a:clearviewport();
i=0;
rectangle(getmaxx()/2-140,getmaxy()/2-20,getmaxx()/2+135,getmaxy()/2+4);
outtextxy(getmaxx()/2-127,getmaxy()/2-12,”Enter Accesscode:”);
gotoxy(43,15);
//Password Code
do
{
pass=getch();
if(pass==13) goto b;
a[i]=char(pass);
cout<<”*”;
sound(500);delay(100);nosound();
i++;
}while(pass!=13);
b:a[i]=0;
access=stricmp(a,”nopassword”);
if(access==0)
{
cout<<”
Access Granted .. (…)

A Program in C language to display the Faculty Information

only the source code is given here
#include<graphics.h>
#include<dos.h>
#include<stdlib.h>
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<process.h>
#include<fstream.h>
#include<dir.h>
#include<stdio.h>
#define xy(z) (8*(z-1))
// GLOBAL Funcions
void grap();
void intro();
void box();
void mainwindow();
void faculty();
void student();
void enterdata();
void personaldetial();
void admindetails(char *name);
void seeyearfaculty();
void fullaccessfaculty();
void modifyfaculty();
void deletefaculty();
void prin();
void enterdatast();
void personalst();
void academic(char *name);
void seetotalst();
void fullaccessst();
void modifyst();
void deletest();
void encrypt(char *name);
void closeprog();
void quit();
void typeme(int left,int top,const char *word,int interval);
// GLOBAL Variables
int option,pass,i,access,x,y,status;
char year[10],ch,name[100],temp[200],newfile[100],a[50],mod;
void *p;
size_t area;
void main()
{
grap();
a:clearviewport();
i=0;
rectangle(getmaxx()/2-140,getmaxy()/2-20,getmaxx()/2+135,getmaxy()/2+4);
outtextxy(getmaxx()/2-127,getmaxy()/2-12,”Enter Accesscode:”);
gotoxy(43,15);
//Password Code
do
{
pass=getch();
if(pass==13) goto b;
a[i]=char(pass);
printf(“*”);
sound(500);delay(100);nosound();
i++;
}while(pass!=13);
b:a[i]=0;
access=stricmp(a,”nopassword”);
if(access==0)
{
Printf(“
Access Granted” ..)
Press Any Key To Continue…….”;
intro();
textcolor(BLACK);
textbackground(YELLOW);
mainwindow();
}
else
{
clearviewport();
printf(“
Unautorised Access “);
Printf(“
Press Any Key To Continue……… “);
getch();
goto a;
}
}
// INTRODUCTION SCREEN
void intro()
{
int a,b,c,d;
setfillstyle(8,1);
for(a=0,b=getmaxx(),c=getmaxx()/2,d=getmaxx()/2;a<getmaxx()/2+3;a+=5,b-=5,
c-=5,d+=5)
{
line(c,xy(8),d,xy(8));line(c,xy(51),d,xy(51));
bar(0,xy(9),a,xy(50));bar(b,xy(9),getmaxx(),xy(50));
sound(10*(a+250));delay(10);
}
nosound();
char pattern[] ={0xfe,0xbc,0xda,0xe4,0xe2,0xc0,0×88,0×00};
setfillpattern(pattern,1);
bar(0,0,640,480);
settextstyle(1,0,5);
setcolor(10);
outtextxy(100,140,”INSTITUTE MANAGEMENT”);
outtextxy(250,200,”SYSTEM”);
getch();
setcolor(0);
for(i=0;i<=320;i++)
{
rectangle(0+i,0,640-i,480);
delay(5);
}
closegraph();
}
// DETECTION OF GRAPHICS
void grap()
{
int gd= DETECT, gm, errorcode;
initgraph(&gd, &gm, “c:\tc\bgi”);
errorcode = graphresult();
if(errorcode != grOk)
{
printf(”Graphics error: %s
“, grapherrormsg(errorcode));
exit(1);
}
}
// FUNCTION TO DRAW A BOX
void box(void)
{
int i,x,y;
gotoxy(11,2);
for(i=1; i<=58; i++)
{
putch(196);
}
gotoxy(11,6);
for(i=1; i<=58; i++)
{
putch(196);
}
gotoxy(68,2);
putch(191);
y=3;
for(i=1; i<=21; i++)
{
gotoxy(68,y);
y++;
putch(179);
}
gotoxy(68,24);
putch(217);
gotoxy(11,24);
for(i=1; i<=57; i++)
{
putch(196);
}
gotoxy(11,24);
putch(192);
y=3;
for(i=1; i<=21; i++)
{
gotoxy(11,y);
y++;
putch(179);
}
gotoxy(11,2);
putch(218);
}
// Main Window Function
void mainwindow()
{
clrscr();
box();
gotoxy(26,4);cout<<”INSTITUTE MANAGEMENT SYSTEM “;
gotoxy(26,5);cout<<”===========================”;
gotoxy(26,8);cout<<”Choose Your Option …….”;
gotoxy(26,10);cout<<”1. (…)

Google Analytics Alternative