Informatics Practices
NAME- SOANM CHAUDHARY
Class XII-Commerce
Section: A
ROLL NO. -9132901
Session 2015-16
Informatics Practices
Acknowledgement
I would like to express my special thanks of
gratitude to my teacher
MRS. REENA
NIGAM who gave me the golden opportunity
to do this wonder full project also help me in
doing a lot of research and I came to know
about so many new things I am really thankful
to them.
Secondly I would also like to thank my parents
and friends who helped me a lot in finalising
this
project
within
the
limited
time
framework..
SCHOOL
MANAGEMENT
#include<iostream>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
// define maximum number of patients in a queue
#define MAXPATIENTS 100
// define structure for patient data
using namespace std;
struct patient
{
char FirstName[50];
char LastName[50];
char ID[20];
};
// define class for queue
class queue
{
public:
queue (void);
int AddPatientAtEnd (patient p);
int AddPatientAtBeginning (patient p);
patient GetNextPatient (void);
int RemoveDeadPatient (patient * p);
void OutputList (void);
char DepartmentName[50];
private:
int NumberOfPatients;
patient List[MAXPATIENTS];
};
// declare member functions for queue
queue::queue ()
{
// constructor
NumberOfPatients = 0;
}
int queue::AddPatientAtEnd (patient p)
{
OUTPUT