Hi, I need help in a C ++ code, it\'s about an assignment on Hospital System Man
ID: 3874310 • Letter: H
Question
Hi, I need help in a C ++ code, it's about an assignment on Hospital System Management, I have this code and I need to implement data structres, it would be a great favor to help me as soon as possible, I have to implement bags, linked list, stacks and if possible trees, you can modify the code and do it at your best, and create a class of the rooms of the hospital and add patients to it, it would be very pleasant thank you.
#include<iostream>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
using namespace std;
// define maximum number of patients in a queue
#define MAXPATIENTS 100
#define MAXDOCTORS 100
int choice = 0, success;
// define structure for patient data
struct patient
{
char FirstName[50];
char LastName[50];
char ID[20];
char age[20];
char room[20];
};
struct doctor
{
char FirstName[50];
char LastName[50];
char ID[20];
char age[20];
char room[20];
};
// define class for queue
class queue
{
public:
queue (void);
int AddDoctorAtEnd(doctor d);
int AddPatientAtEnd (patient p);
int AddPatientAtBeginning (patient p);
patient GetNextPatient (void);
doctor GetNextDoctor();
int RemoveDeadPatient (patient * p);
void OutputList (void);
char DepartmentName[50];
private:
int NumberOfPatients;
int NumberOfDoctors;
patient List[MAXPATIENTS];
doctor List2[MAXDOCTORS];
};
// declare member functions for queue
queue::queue ()
{
// constructor
NumberOfPatients = 0;
NumberOfDoctors=0;
}
int queue::AddPatientAtEnd (patient p)
{
// adds a normal patient to the end of the queue.
// returns 1 if successful, 0 if queue is full.
if (NumberOfPatients >= MAXPATIENTS)
{
// queue is full
return 0;
}
// put in new patient
else
List[NumberOfPatients] = p; NumberOfPatients++;
return 1;
}
int queue::AddDoctorAtEnd (doctor d)
{
// adds a normal doctor to the end of the queue.
// returns 1 if successful, 0 if queue is full.
if (NumberOfDoctors >= MAXDOCTORS)
{
// queue is full
return 0;
}
// put in new patient
else
List2[NumberOfDoctors] = d; NumberOfDoctors++;
return 1;
}
int queue::AddPatientAtBeginning (patient p)
{
// adds a critically ill patient to the beginning of the queue.
// returns 1 if successful, 0 if queue is full.
int i;
if (NumberOfPatients >= MAXPATIENTS)
{
// queue is full
return 0;
}
// move all patients one position back in queue
for (i = NumberOfPatients-1; i >= 0; i--)
{
List[i+1] = List[i];
}
// put in new patient
List[0] = p; NumberOfPatients++;
return 1;
}
patient queue::GetNextPatient (void)
{
// gets the patient that is first in the queue.
// returns patient with no ID if queue is empty
int i; patient p;
if (NumberOfPatients == 0) {
// queue is empty
strcpy(p.ID,"");
return p;}
// get first patient
p = List[0];
// move all remaining patients one position forward in queue
NumberOfPatients--;
for (i=0; i<NumberOfPatients; i++)
{
List[i] = List[i+1];
}
// return patient
return p;
}
doctor queue::GetNextDoctor (void)
{
// gets the doctor that is first in the queue.
// returns patient with no ID if queue is empty
int i; doctor d;
if (NumberOfDoctors == 0) {
// queue is empty
strcpy(d.ID,"");
return d;}
// get first patient
d = List2[0];
// move all remaining patients one position forward in queue
NumberOfDoctors--;
for (i=0; i<NumberOfDoctors; i++)
{
List[i] = List[i+1];
}
// return patient
return d;
}
int queue::RemoveDeadPatient (patient * p)
{
// removes a patient from queue.
// returns 1 if successful, 0 if patient not found
int i, j, found = 0;
// search for patient
for (i=0; i<NumberOfPatients; i++)
{
if (stricmp(List[i].ID, p->ID) == 0)
{
// patient found in queue
*p = List[i]; found = 1;
// move all following patients one position forward in queue
NumberOfPatients--;
for (j=i; j<NumberOfPatients; j++)
{
List[j] = List[j+1];
}
}
}
return found;
}
void queue::OutputList (void)
{
// lists entire queue on screen
int i;
if(NumberOfPatients == 0)
{
cout<<"Queue is empty"<<endl;
}
else
{
for (i=0; i<NumberOfPatients; i++)
{
cout << " " << List[i].FirstName;
cout << " " << List[i].LastName;
cout << " " << List[i].ID;
cout << " " << List[i].age;
cout << " " << List[i].room;
}
}
}
doctor InputDoctor (void)
{
// this function asks user for patient data.
doctor d;
cout << " Please enter data for new Doctor First name:";
cin.getline(d.FirstName, sizeof(d.FirstName));
cout << "Last name:";
cin.getline(d.LastName, sizeof(d.LastName));
cout << "ID:";
cin.getline(d.ID, sizeof(d.ID));
cout<< "Age:";
cin.getline(d.age, sizeof(d.age));
cout<<"Room.no:";
cin.getline(d.room, sizeof(d.room));
// check if data valid
if (d.FirstName[0]==0 || d.LastName[0]==0 || d.ID[0]==0)
{
// rejected
strcpy(d.ID,"");
cout << "Error: Data not valid. Operation cancelled."<<endl;
getch();
}
return d;
}
// declare functions used by main:
patient InputPatient (void)
{
// this function asks user for patient data.
patient p;
cout << " Please enter data for new patient First name:";
cin.getline(p.FirstName, sizeof(p.FirstName));
cout << "Last name:";
cin.getline(p.LastName, sizeof(p.LastName));
cout << "ID:";
cin.getline(p.ID, sizeof(p.ID));
cout<< "Age:";
cin.getline(p.age, sizeof(p.age));
cout<<"Room.no";
cin.getline(p.room, sizeof(p.room));
// check if data valid
if (p.FirstName[0]==0 || p.LastName[0]==0 || p.ID[0]==0)
{
// rejected
strcpy(p.ID,"");
cout << "Error: Data not valid. Operation cancelled."<<endl;
getch();
}
return p;
}
void OutputPatient (patient * p)
{
// this function outputs patient data to the screen
if (p == NULL || p->ID[0]==0)
{
cout << "No patient"<<endl;
return;
}
else
cout << " Patient data:";
cout << " First name:" << p->FirstName;
cout << " Last name:" << p->LastName;
cout << " ID:" << p->ID;
cout <<" Age:" <<p->age;
cout <<" Room N.:"<<p->room;
}
void OutputDoctor (doctor * d)
{
// this function outputs patient data to the screen
if (d == NULL || d->ID[0]==0)
{
cout << "No doctor"<<endl;
return;
}
else
cout << " Doctor data:";
cout << " First name:" << d->FirstName;
cout << " Last name:" << d->LastName;
cout << " ID:" << d->ID;
cout << " Age:"<< d->age;
cout <<" Room N.:"<< d->room;
}
int ReadNumber()
{
// this function reads an integer number from the keyboard.
// it is used because input with cin >> doesn't work properly!
char buffer[20];
cin.getline(buffer, sizeof(buffer));
return atoi(buffer);
}
void DepartmentMenu (queue * q)
{
// this function defines the user interface with menu for one
//int department;
int choice = 0, success; patient p; doctor d;
while (choice != 7)
{
// clear screen
system("cls");
// print menu
cout << "Welcome to department: " << q->DepartmentName;
cout << "Please enter your choice: ";
cout << "1: Add normal patient ";
cout << "2: Add a Doctor ";
cout << "3: Add critically patient ";
cout << "4: Take out patient for operation ";
cout << "5: Remove dead patient from queue ";
cout << "6: List queue Patients ";
cout << "7: Change department or exit ";
// get user choice
choice = ReadNumber();
// do indicated action
switch (choice)
{
case 1: // Add normal patient
p = InputPatient();
if (p.ID[0])
{
success = q->AddPatientAtEnd(p);
system("cls");
if (success)
{
cout << "Patient added:";
}
else
{
// error
cout << "Error: The queue is full. Cannot add patient:"<<endl;
}
OutputPatient(&p);
cout << "Press any key";
getch();
}
break;
case 2: // Add doctor
d = InputDoctor();
if (d.ID[0])
{
success = q->AddDoctorAtEnd(d);
system("cls");
if (success)
{
cout << "Doctor added:";
}
else
{
// error
cout << "Error: The queue is full. Cannot add patient:"<<endl;
}
OutputDoctor(&d);
cout << "Press any key";
getch();
}
break;
case 3: // Add critically ill patient
p = InputPatient();
if (p.ID[0])
{
success = q->AddPatientAtBeginning(p);
system("cls");
if (success)
{
cout << "Patient added:";
}
else
{
// error
cout << "Error: The queue is full. Cannot add patient:"<<endl;
}
OutputPatient(&p);
cout << "Press any key";
getch();
}
break;
case 4: // Take out patient for operation
p = q->GetNextPatient();
system("cls");
if (p.ID[0])
{
cout << "Patient to operate:";
OutputPatient(&p);}
else
{
cout << "There is no patient to operate."<<endl;
}
cout << "Press any key";
getch();
break;
case 5: // Remove dead patient from queue
p = InputPatient();
if (p.ID[0])
{
success = q->RemoveDeadPatient(&p);
system("cls");
if (success)
{
cout << "Patient removed:";
}
else
{
// error
cout << "Error: Cannot find patient:";
}
OutputPatient(&p);
cout << "Press any key";
getch();
}
break;
case 6: // List queue
system("cls");
q->OutputList();
cout << "Press any key";
getch(); break;
}
}
}
// main function defining queues and main menu
int main ()
{
system("color f4");
int i, MenuChoice = 0;
// define three queues
queue departments[4];
// set department names
strcpy (departments[0].DepartmentName, "Heart clinic ");
strcpy (departments[1].DepartmentName, "Lung clinic ");
strcpy (departments[2].DepartmentName, "Plastic surgery ");
strcpy (departments[3].DepartmentName, "Neurosurgery clinic ");
while (MenuChoice != 5)
{
// clear screen
system("cls");
// print menu
cout << " ****************Welcome to Hospital System Management***************** ";
cout << " Please enter your choice: ";
for (i = 0; i < 4; i++)
{
// write menu item for department i
cout << "" << (i+1) << ": " << departments[i].DepartmentName;
}
cout << "5: Exit ";
// get user choice
MenuChoice = ReadNumber();
// is it a department name?
if (MenuChoice >= 1 && MenuChoice <= 4)
{
// call submenu for department
// (using pointer arithmetics here:)
DepartmentMenu (departments + (MenuChoice-1));
}
}
}
Explanation / Answer
#include<iostream.h>
#include<conio.h>
#include<process.h>
class all
{
private:
struct address
{
int house;
char street[30];
char city[30];
char state[30];
char country[30];
};
struct age
{
int day;
int month;
int year;
};
struct patient_info
{
char name[50];
address AD1; //nested structure implemented
age A1; //nested structure inplemented
int martial_status;
int reg_no;
int bld_group;
int sex;
}PI[100];
int task;
protected:
void enter_patient_info();
void show_patient_detail();
public:
void software_detail();
void tasks();
char answer;
char answer1;
char ch;
int serial;
};
class date
{
private:
int date;
int month;
int year;
public:
void enter_date();
void show_date();
};
class dob
{
private:
struct dob1
{
int date;
int month;
int year;
int rem;
}DOB11[100];
public:
void enter_date();
void show_date();
};
int i=0;
int rem;
int count;
int regis;
int attempt;
int temp;
int show_count=0;
all A1; //object declared
date D1; //object declared
dob DOB1; //object declared
void main()
{
count=0;
cout<<"Welcome to..."<<"
";
cout<<"
***HOSPITAL MANAGEMENT SOFTWARE***"<<"
";
cout<<" By Mustafizur Rohman "<<"
";
D1.enter_date();
A1.tasks();
}
void all::tasks()
{
attempt=0;
D1.show_date();
cout<<"
***HOSPITAL MANAGEMENT SOFTWARE***"<<"
";
cout<<" By Mustafizur Rohman "<<"
";
cout<<"
**Hospital Management Tasks**"<<"
";
cout<<" *****************************"<<"
";
cout<<"
Please select a task to do...."<<"
";
cout<<"
1. Enter a new patient information ."<<"
";
cout<<"2. View detail of existing patient ."<<"
";
cout<<"3. View detail about the program ."<<"
";
cout<<"4. Exit from the program ."<<"
";
//other function remain
cout<<"
Enter your task serail :"<<"
";
cin>>task;
switch(task)
{
case 1:{
A1.enter_patient_info();
break;
}
case 2:{
A1.show_patient_detail();
break;
}
case 3:{
A1.software_detail();
break;
}
case 4:{
clrscr();
cout<<"
Thank You for trying this program !!!"<<"
";
cout<<" This is the end of program...."<<"
";
cout<<"
Press any key to exit....."<<"
";
getch();
exit(0);
break;
}
default:{
clrscr();
cout<<"
Invalid task serial ."<<"
";
cout<<"Press any key to continue...."<<"
";
getch();
clrscr();
A1.tasks();
}
}
}
void all::enter_patient_info()
{
clrscr();
answer='y';
if(count==0)
{
serial=1;
}
else
{
i=serial;
}
for(i=serial;answer=='y'||answer=='Y';i++)
{
PI[i].reg_no=i;
temp=serial;
cout<<"
***ENTERING INFORMATION FOR PATIENT SERIAL NUMBER "<<i<<"***"<<"
";
cin.get(ch);
cout<<"
Registration Number : "<<PI[i].reg_no<<"
";
cout<<"Enter the name of patient :"<<"
";
clreol();
cin.getline(PI[i].name,50);
cout<<"Sex (1-Male 2-Female) :"<<"
";
clreol();
cin>>PI[i].sex;
while(PI[i].sex!=1&&PI[i].sex!=2)
{
cout<<"Invalid input for sex of patient!!!"<<"
";
cout<<"Sex :"<<"
";
clreol();
cin>>PI[i].sex;
}
cout<<"
***ENTERING ADDRESS**"<<"
";
cout<<"House number :"<<"
";
clreol();
cin>>PI[i].AD1.house;
while(PI[i].AD1.house<=0)
{
cout<<"Invalid input for house number ."<<"
";
cout<<"Again enter the house number ."<<"
";
clreol();
cin>>PI[i].AD1.house;
}
cin.get(ch);
cout<<"Street :"<<"
";
clreol();
cin.getline(PI[i].AD1.street,30);
cout<<"City :"<<"
";
clreol();
cin.getline(PI[i].AD1.city,30);
cout<<"State :"<<"
";
clreol();
cin.getline(PI[i].AD1.state,30);
cout<<"Country :"<<"
";
clreol();
cin.getline(PI[i].AD1.country,30);
DOB1.enter_date();
//to calculate age
cin.get(ch);
cout<<"Martial status(1-Married,2-Not Married ):"<<"
";
if(count!=0)
{
clreol();
}
cin>>PI[i].martial_status;
while(PI[i].martial_status<1||PI[i].martial_status>2)
{
cout<<"Invalid input for martial status ."<<"
";
cout<<"Enter a valid martial status :"<<"
";
clreol();
cin>>PI[i].martial_status;
}
cin.get(ch);
if(count!=0)
{
clreol();
}
clreol();
cout<<"Blood group :"<<"
";
clreol();
cout<<"1. A+ "<<"
";
clreol();
cout<<"2. A- "<<"
";
clreol();
cout<<"3. B+ "<<"
";
clreol();
cout<<"4. B- "<<"
";
clreol();
cout<<"5. AB+ "<<"
";
clreol();
cout<<"6. AB- "<<"
";
clreol();
cout<<"7. O+ "<<"
";
clreol();
cout<<"8. O- "<<"
";
clreol();
cout<<"Enter :"<<"
";
clreol();
cin>>PI[i].bld_group;
switch(PI[i].bld_group)
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:{
break;
}
default:{
while(PI[i].bld_group!=1&&PI[i].bld_group!=2&&PI[i].bld_group!=3&&
PI[i].bld_group!=4&&PI[i].bld_group!=5&&PI[i].bld_group!=6&&
PI[i].bld_group!=7&&PI[i].bld_group!=8)
{
clreol();
cout<<"Invalid input !"<<"
";
cout<<"Blood Group :"<<"
";
clreol();
cin>>PI[i].bld_group;
}
break;
}
}
cin.get(ch);
cout<<"
Want to enter information for another patient ? "<<"
";
clreol();
cin>>answer;
count++;
serial++;
}
clrscr();
A1.tasks();
}
void dob::enter_date()
{
clreol();
cout<<"
Date of birth"<<"
";
clreol();
cout<<"
Year :";
clreol();
clreol();
cin>>DOB11[temp].year;
if(DOB11[temp].year<=0||DOB11[temp].year>10000)
{
do
{
clreol();
cout<<"Invalid input for year !"<<"
";
cout<<"Please enter the year correctly :"<<"
";
cin>>DOB11[temp].year;
}while(DOB11[temp].year<0||DOB11[temp].year>10000);
}
clreol();
cout<<"Month :";
clreol();
cin>>DOB11[temp].month;
if(DOB11[temp].month<=0||DOB11[temp].month>12)
{
do
{
clreol();
cout<<"Invalid input for month !"<<"
";
cout<<"Again enter the month :"<<"
";
clreol();
if(count!=0)
{
clreol();
}
cin>>DOB11[temp].month;
}while(DOB11[temp].month<0||DOB11[temp].month>12);
}
cout<<"Date :";
clreol();
switch(DOB11[temp].month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:{
cin>>DOB11[temp].date;
while(DOB11[temp].date<1||DOB11[temp].date>31)
{
clreol();
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
clreol();
cin>>DOB11[temp].date;
}
break;
}
case 2:{
cin>>DOB11[temp].date;
if(DOB11[temp].year%4==0)
{
while(DOB11[temp].date<0||DOB11[temp].date>29)
//for leap year
{
clreol();
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
clreol();
cin>>DOB11[temp].date;
}
}
else
{
while(DOB11[temp].date<0||DOB11[temp].date>28)
//for non-leap year
{
clreol();
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
clreol();
cin>>DOB11[temp].date;
}
}
break;
}
default:{
cin>>DOB11[temp].date;
while(DOB11[temp].date<1||DOB11[temp].date>30)
{
clreol();
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
clreol();
cin>>DOB11[temp].date;
}
break;
}
} //end of switch
clreol();
}
void date::enter_date()
{
cout<<"
First of all I need the current date ..."<<"
";
cout<<"
Year :";
cin>>year;
if(year<=0||year>10000)
{
do
{
cout<<"Invalid input for year !"<<"
";
cout<<"Please enter the year correctly :"<<"
";
cin>>year;
}while(year<0||year>10000);
}
cout<<"Month :";
cin>>month;
if(month<=0||month>12)
{
do
{
cout<<"Invalid input for month !"<<"
";
cout<<"Again enter the month :"<<"
";
cin>>month;
}while(month<0||month>12);
}
cout<<"Date :";
switch(month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:{
cin>>date;
while(date<1||date>31)
{
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
cin>>date;
}
break;
}
case 2:{
cin>>date;
if(year%4==0)
{
while(date<0||date>29) //for leap year
{
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
cin>>date;
}
}
else
{
while(date<0||date>28) //for non-leap year
{
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
cin>>date;
}
}
break;
}
default:{
cin>>date;
while(date<1||date>30)
{
cout<<"Invalid date !"<<"
";
cout<<"Again enter the date :"<<"
";
cin>>date;
}
break;
}
} //end of switch
}
void date::show_date() //remove the goto ststements in this function
{
clrscr();
cout<<"Hello....
It's ";
cout<<date;
rem=date%10;
switch(date)
{
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:{
cout<<"th ";
goto over;
}
}
switch(rem)
{
case 1:{
cout<<"st ";
break;
}
case 2:{
cout<<"nd ";
break;
}
case 3:{
cout<<"rd ";
break;
}
default:{
cout<<"th ";
break;
}
}
over:
switch(month)
{
case 1:{
cout<<"January , ";
break;
}
case 2:{
cout<<"February , ";
break;
}
case 3:{
cout<<"March , ";
break;
}
case 4:{
cout<<"April , ";
break;
}
case 5:{
cout<<"May , ";
break;
}
case 6:{
cout<<"June , ";
break;
}
case 7:{
cout<<"July , ";
break;
}
case 8:{
cout<<"August , ";
break;
}
case 9:{
cout<<"September , ";
break;
}
case 10:{
cout<<"October , ";
break;
}
case 11:{
cout<<"November , ";
break;
}
case 12:{
cout<<"December , ";
break;
}
}
cout<<year<<"
";
}
void all::show_patient_detail()
{
do
{
clrscr();
cout<<"
Enter registration number :"<<"
";
clreol();
cin>>regis;
cin.get(ch);
show_count++;
if(regis>0&®is<serial)
{
clreol();
cout<<"
***INFORMATION FOR PATIENT REGISTRATION NUMBER"<<regis<<"***
";
clreol();
cout<<"Name : "<<PI[regis].name<<"
";
clreol();
cout<<"Sex : ";
clreol();
if(PI[regis].sex==1)
{
cout<<"Male "<<"
";
clreol();
}
if(PI[regis].sex==2)
{
cout<<"Female "<<"
";
clreol();
}
cout<<"Blood Group : ";
clreol();
switch(PI[regis].bld_group)
{
case 1:{
clreol();
cout<<"A+
";
break;
}
case 2:{
clreol();
cout<<"A-
";
break;
}
case 3:{
clreol();
cout<<"B+
";
break;
}
case 4:{
clreol();
cout<<"B-
";
break;
}
case 5:{
clreol();
cout<<"AB+
";
break;
}
case 6:{
clreol();
cout<<"AB-
";
break;
}
case 7:{
clreol();
cout<<"O+
";
break;
}
case 8:{
clreol();
cout<<"O-
";
break;
}
}
clreol();
cout<<"Date of birth : ";
clreol();
DOB1.show_date();
cout<<"Martial Status : ";
clreol();
if(PI[i].martial_status==1)
{
cout<<"Married "<<"
";
clreol();
}
else
{
cout<<"Not married "<<"
";
clreol();
}
clreol();
cout<<"
**ADDRESS**"<<"
";
clreol();
cout<<"
House no. : "<<PI[regis].AD1.house;
clreol();
cout<<"
Street : "<<PI[regis].AD1.street;
clreol();
cout<<"
City : "<<PI[regis].AD1.city;
clreol();
cout<<"
State : "<<PI[regis].AD1.state;
clreol();
cout<<"
Country : "<<PI[regis].AD1.country;
clreol();
}
else
{
if(regis==1)
{
cout<<"
Database is empty !!!"<<"
";
cout<<"Press any key to exit to main task menu..."<<"
";
getch();
clrscr();
A1.tasks();
}
attempt++;
if(attempt==3)
{
cout<<"
You have entered wrong registration number 3 times
."<<"
";
cout<<"Access Denied!!! "<<"
";
cout<<"Please try again later. "<<"
";
cout<<"Press any key to exit to main task menu..."<<"
";
getch();
clrscr();
A1.tasks();
}
clreol();
cout<<"
Sorry, the registration number is invalid ."<<"
";
cout<<"Press any key to continue...."<<"
";
getch();
clreol();
A1.show_patient_detail();
}
clreol();
cout<<"
Want to see information of another patient :"<<"
";
clreol();
cin>>answer1;
}while(answer1=='y'||answer1=='Y');
clreol();
clrscr();
A1.tasks();
}
void dob::show_date()
{
cout<<DOB11[regis].date;
rem=DOB11[regis].date%10;
switch(DOB11[regis].date)
{
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:{
cout<<"th ";
goto over;
}
}
switch(rem)
{
case 1:{
cout<<"st ";
break;
}
case 2:{
cout<<"nd ";
break;
}
case 3:{
cout<<"rd ";
break;
}
default:{
cout<<"th ";
break;
}
}
over:
switch(DOB11[regis].month)
{
case 1:{
cout<<"January , ";
break;
}
case 2:{
cout<<"February , ";
break;
}
case 3:{
cout<<"March , ";
break;
}
case 4:{
cout<<"April , ";
break;
}
case 5:{
cout<<"May , ";
break;
}
case 6:{
cout<<"June , ";
break;
}
case 7:{
cout<<"July , ";
break;
}
case 8:{
cout<<"August , ";
break;
}
case 9:{
cout<<"September , ";
break;
}
case 10:{
cout<<"October , ";
break;
}
case 11:{
cout<<"November , ";
break;
}
case 12:{
cout<<"December , ";
break;
}
}
cout<<DOB11[regis].year<<"
";
}
void all::software_detail()
{
clrscr();
cout<<"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.