05-02-2011, 06:08 AM
Here is a chunk of code prototype of Library Managment System.
Here i try to ellaborate the part of two classes one is Library and other is Administrator.
//Library class
class library {
//Attributes of library class
char name[25];
char interface[50];
char space[100];
public:
// Functions of library class
int storeDetailOfData();
int add();
int search();
int Return();
int borrow();
};
// Starting of administrator class
class administrator {
// Attributes of administrator class
library name[25];
char gender[8];
int id;
char address[50];
public:
//Functions of administrator class
void login();
void logoff();
int search();
int Return();
int borrow();
};
Here i try to ellaborate the part of two classes one is Library and other is Administrator.
//Library class
class library {
//Attributes of library class
char name[25];
char interface[50];
char space[100];
public:
// Functions of library class
int storeDetailOfData();
int add();
int search();
int Return();
int borrow();
};
// Starting of administrator class
class administrator {
// Attributes of administrator class
library name[25];
char gender[8];
int id;
char address[50];
public:
//Functions of administrator class
void login();
void logoff();
int search();
int Return();
int borrow();
};
