SlideShare a Scribd company logo
1 of 7
//BLOOD BANK MANAGEMENT SYSTEM AS A DOUPLY LINK LIST PROJECT.
#include<conio.h>
#include<windows.h>
#include<iostream>
#include<math.h>
#include<string>
using namespace std;
struct node{
string name,gender,blood_grp,address;
int age;
long double cell_no,id;
node *link;
node *prev;
};
class logo{
public:
logo(){
}
void set(){system("color 3F");
Sleep(500);cout<<"nntttt
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB";
Sleep(500);cout<<"nntttt
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB";
Sleep(200);cout<<"nnttt WELL COME TO BLOOD
BANK MANAGMENT SYSTEM";
Sleep(500);cout<<"nntttt
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB";
Sleep(500);cout<<"nntttt
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB";
system("color 2B");}
void login(){
string pass = "hamza10";
string user ;
cout << "nttENTER YOUR PASSWORD TO THIS PROJECT ==::";
cin >> user;
while(pass !=user) {
cout<< "password is wrongn";
cout<<"Enter correct password";
cin >> user;
}
system("color 2F");
}
};
class blood{
private:
string name,gender,blood_grp,address;
int age;
long double cell_no,id;
int n,i;
node *start,*temp,*curr,*end;
public:
blood(){
start=NULL;
}
void insert(){
//cout<<"HOW MANY DONER GIVE BLOOD "<<endl;
//cout<<"ttplease enter______:";
//cout<<"tt";cin>>n;
//for(i=1;i<n+1;i++){
cout<<"ttENTER DONER ID___:";
cout<<"t";cin>>id;
cout<<"ttENTER NAME----:tt";
cin.sync();
getline(cin,name);
// cin>>name;
cout<<"ttENTER GENDER---:t";
cin.sync();
getline(cin,gender);
cout<<"ttENTER BLOOD GROUP___:t";
cin>>blood_grp;
cout<<"ttENTER ADDRESS____:t";
cin.sync();
getline(cin,address);
cout<<"ttENTER AGE___:tt";
cin>>age;
cout<<"ttENTER MOBILE NO____:t";
cin>>cell_no;
cout<<"nYour Record=:"" Has been Success Fully insertedn";
if(start==NULL)
{
start=new node;
start->id=id;
start->name=name;
start->gender=gender;
start->blood_grp=blood_grp;
start->address=address;
start->age=age;
start->cell_no=cell_no;
start->link=NULL;
start->prev=NULL;
}
else
{
curr=start;
while(curr->link!=NULL)
{
curr=curr->link;
}
temp=new node;
temp->id=id;
temp->name=name;
temp->gender=gender;
temp->blood_grp=blood_grp;
temp->address=address;
temp->age=age;
temp->cell_no=cell_no;
curr->link=temp;
temp->link=NULL;
temp->prev=curr;
}
}
void insert_specific(){
int pos;
if(start==NULL)
cout<<"tt THERE IS NO DATA";
else{
cout<<"tt ENTER Position Where u want to add";
cout<<"ntt";cin>>pos;
curr=start;
for(int i=1;i<pos-1;i++)
{
curr=curr->link;
}
temp=new node;
cout<<"tENTER DONER ID___:";
cout<<"t";cin>>id;
temp->id=id;
cout<<"tENTER NAME----:";
cin.sync();
getline(cin,name);
temp->name=name;
cout<<"tENTER GENDER---:";
cin.sync();
getline(cin,gender);
temp->gender=gender;
cout<<"tENTER BLOOD GROUP___:";
cin>>blood_grp;
temp->blood_grp=blood_grp;
cout<<"tENTER ADDRESS____:";
cin.sync();
getline(cin,address);
temp->address=address;
cout<<"tENTER AGE___:";
cin>>age;
temp->age=age;
cout<<"tENTER MOBILE NO____:";
cin>>cell_no;
temp->cell_no=cell_no;
cout<<"nYour Record=:"" Has been Success Fully insertedn";
temp->link=curr->link;
temp->prev=curr;
curr->link=temp;
}
}
void display(){
if(start==NULL)
{cout<<"NO Data Found";
return;}
else{
curr=start;
//cout<<"start="<<start<<endl;
//cout<<"start link="<<start->link<<endl;
//system("pause");
while(curr->link!=NULL)
{
cout<<"ttDONER ID IS=:t"<<curr->id<<endl;
cout<<"ttNAME OF DONER=:t"<<curr->name<<endl;
cout<<"ttDONER AGE=:t"<<curr->age<<endl;
cout<<"ttDONER GENDER=t:"<<curr->gender<<endl;
cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl;
cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl;
cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl;
//system("pause");
curr=curr->link;
}
cout<<"ttDONER ID IS=:t"<<curr->id<<endl;
cout<<"ttNAME OF DONER=:t"<<curr->name<<endl;
cout<<"ttDONER AGE=:t"<<curr->age<<endl;
cout<<"ttDONER GENDER=:t"<<curr->gender<<endl;
cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl;
cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl;
cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl;
//system("pause");
}}
void checkbloodgrp(){
system("color 4B");
//int found=-1;
string type;
if(start==NULL)
cout<<"tt No RECORD"<<endl;
else{
cout<<"ttENTER the BLOOD type"<<endl;
cin>>type;
curr=start;
while(curr!=NULL){
if(curr->blood_grp ==type)
{
cout<<"ttDONER ID IS=:t"<<curr->id<<endl;
cout<<"ttNAME OF DONER=:t"<<curr->name<<endl;
cout<<"ttDONER AGE=:t"<<curr->age<<endl;
cout<<"ttDONER GENDER=:t"<<curr->gender<<endl;
cout<<"tt DONER BLOOD GROUP=:t"<<curr-
>blood_grp<<endl;
cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl;
cout<<"ttDONER MOBILE NO=:t"<<curr-
>cell_no<<endl;
}//cout<<" no donors found";
curr=curr->link;
}}
}
void check_age(){
system("color 2B");
if(start==NULL)
cout<<"no record in this"<<endl;
else{
curr=start;
//int found=0;
while(curr!=NULL){
if(curr->age>16 && (curr->gender=="f"||curr->gender=="m")){
cout<<"ttDONER ID IS=:t"<<curr->id<<endl;
cout<<"ttNAME OF DONER=:t"<<curr->name<<endl;
cout<<"ttDONER AGE=:t"<<curr->age<<endl;
cout<<"ttDONER GENDER=:t"<<curr->gender<<endl;
cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl;
cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl;
cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl;
}
curr=curr->link;
}
cout<<"ntt NO DATA FOUND";
}
}
void count(){
system("color 2F");
int count = 0;
if(start==NULL)
cout<<" THERE IS NO DATAn";
else{
curr=start;
while(curr!= NULL){
count++;
curr=curr->link;
}
cout<<"NUMBER OF DONER IN LIST IS::t"<<count<<endl;
system("color 5F");
}
}
void del_start(){
system("color 4F");
if(start==NULL)
cout<<"ttNO DATA "<<endl;
else{
curr=start;
while(curr->link!=NULL){
if(curr==start)
start=curr->link;
start->prev=NULL;
delete curr;
cout<<"tfirst record has been deleted";
break;
}
}
}
void delspecific(){
system("color 46");
string ch;
if(start==NULL)
cout<<"no data";
else{
cout<<"enter value to delete"<<endl;
cout<<"ntt";cin>>ch;
curr=temp=start;
while(curr->link!=NULL)
{
if(curr->name==ch)
{
cout<<"value found"<<endl;
temp->link=curr->link;
end->prev=temp;
delete curr;
break;
}
temp=curr;
curr=curr->link;
end=curr->link;
}
}
}
void del_all(){
start=NULL;
display();
cout<<"nnYour all record has been deleted...."<<endl;
system("color 22");
}
void About_Dev()
{ system("color 2F");
cout<<"nttttxDBxDBxDBxDBxDBxDB About Developer
xDBxDBxDBxDBxDBxDBxDBxDBxDBnn";
//cout<<"nttttxDBxDBxDBxDBxDBxDBxDBxDB All Rights Reserved
xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBn";
Sleep(600);cout<<"nttCoder Name : MUAWAZ";Sleep(600);cout<<"
AYYAZ";Sleep(600);cout<<" GUJJARn";Sleep(600);
Sleep(500);cout<<"nttCoder Name : USMAN";Sleep(500);cout<<"
ALI";Sleep(400);cout<<" warriachn";Sleep(600);
Sleep(300);cout<<"nttCoder Name : ABDUL MANAN";Sleep(300);cout<<"
HAMZA";Sleep(300);cout<<" ARAIENn";Sleep(300);
cout<<"nttPlatform :Visual Studio OR DEV-C++ n";
cout<<"nttLanguage :C++n";
Sleep(500);
system("color 2F");
}
};
int main(){
logo l;
l.set();
l.login();
blood b;
int val;
system("color 4F");
while(1){
Sleep(100);cout<<"ntt INESRT #: 1 FOR ENTER BLOOD DONOR
DATA";
Sleep(150);cout<<"ntt INESRT #: 2 FOR ENTER At SPECIFIC
BLOOD DONOR DATA";
Sleep(50) ;cout<<"ntt INESRT #: 3 FOR CHECK BLOOD GROUP";
Sleep(40) ;cout<<"ntt INESRT #: 4 BLOOD DONORS IN AGE GROUP
ABOVE 16";
Sleep(30);cout<<"ntt INESRT #: 5 to DISPLAY ALL DATA";
Sleep(15);cout<<"ntt INESRT #: 6 to delete at first
location";
Sleep(15);cout<<"ntt INESRT #: 7 to delete at specific
location";
Sleep(12);cout<<"ntt INESRT #: 8 to check the total
number of doner";
Sleep(30);cout<<"ntt INESRT #: 9 to DELETE ALL DATA";
Sleep(9);cout<<"ntt INESRT #: 10 FOR About Developer";
Sleep(10) ;cout<<"n ttEnter your Choice : ";
cout<<"tt";cin>>val;
switch(val){
case 1:
b.insert();
break;
case 2:
b.insert_specific();
break;
case 3:
b.checkbloodgrp();
break;
case 4:
b.check_age();
break;
case 5:
b.display();
break;
case 6:
b.del_start();
break;
case 7:
b.delspecific();
break;
case 8:
b.count();
break;
case 9:
b.del_all();
break;
case 10:
b.About_Dev();
break;
}
}
_getch();
return 0;
}

More Related Content

What's hot

MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...
MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...
MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...MongoDB
 
Encryption: It's For More Than Just Passwords
Encryption: It's For More Than Just PasswordsEncryption: It's For More Than Just Passwords
Encryption: It's For More Than Just PasswordsJohn Congdon
 
Back to Basics Webinar 5: Introduction to the Aggregation Framework
Back to Basics Webinar 5: Introduction to the Aggregation FrameworkBack to Basics Webinar 5: Introduction to the Aggregation Framework
Back to Basics Webinar 5: Introduction to the Aggregation FrameworkMongoDB
 
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...BradNeuberg
 
Common Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo appsCommon Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo appsOdoo
 
Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Steven Pousty
 
Spatial script for MongoBoulder
Spatial script for MongoBoulderSpatial script for MongoBoulder
Spatial script for MongoBoulderSteven Pousty
 
MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineJason Terpko
 
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genIntroduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genMongoDB
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on AndroidSven Haiges
 
MongoDB Aggregation
MongoDB Aggregation MongoDB Aggregation
MongoDB Aggregation Amit Ghosh
 
2 teks tongkat mukjizat
2  teks tongkat mukjizat2  teks tongkat mukjizat
2 teks tongkat mukjizatSaleha Mohd
 
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursor
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursorHow we cooked Elasticsearch, Consul, HAproxy and DNS-recursor
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursorOleg Tokarev
 
Inside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseInside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseMike Dirolf
 
HDTR images with Photoshop Javascript Scripting
HDTR images with Photoshop Javascript ScriptingHDTR images with Photoshop Javascript Scripting
HDTR images with Photoshop Javascript ScriptingDavid Gómez García
 
GeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesGeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesJustin Deoliveira
 
Python postgre sql a wonderful wedding
Python postgre sql   a wonderful weddingPython postgre sql   a wonderful wedding
Python postgre sql a wonderful weddingStéphane Wirtel
 
MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance TuningPuneet Behl
 

What's hot (20)

MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...
MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...
MongoDB Analytics: Learn Aggregation by Example - Exploratory Analytics and V...
 
Encryption: It's For More Than Just Passwords
Encryption: It's For More Than Just PasswordsEncryption: It's For More Than Just Passwords
Encryption: It's For More Than Just Passwords
 
Back to Basics Webinar 5: Introduction to the Aggregation Framework
Back to Basics Webinar 5: Introduction to the Aggregation FrameworkBack to Basics Webinar 5: Introduction to the Aggregation Framework
Back to Basics Webinar 5: Introduction to the Aggregation Framework
 
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
 
Common Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo appsCommon Performance Pitfalls in Odoo apps
Common Performance Pitfalls in Odoo apps
 
Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012Spatial script for my JS.Everywhere 2012
Spatial script for my JS.Everywhere 2012
 
Spatial script for MongoBoulder
Spatial script for MongoBoulderSpatial script for MongoBoulder
Spatial script for MongoBoulder
 
MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation Pipeline
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to Elasticsearch
 
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genIntroduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on Android
 
MongoDB Aggregation
MongoDB Aggregation MongoDB Aggregation
MongoDB Aggregation
 
2 teks tongkat mukjizat
2  teks tongkat mukjizat2  teks tongkat mukjizat
2 teks tongkat mukjizat
 
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursor
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursorHow we cooked Elasticsearch, Consul, HAproxy and DNS-recursor
How we cooked Elasticsearch, Consul, HAproxy and DNS-recursor
 
Inside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseInside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source Database
 
HDTR images with Photoshop Javascript Scripting
HDTR images with Photoshop Javascript ScriptingHDTR images with Photoshop Javascript Scripting
HDTR images with Photoshop Javascript Scripting
 
Introduction to solr
Introduction to solrIntroduction to solr
Introduction to solr
 
GeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesGeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting Languages
 
Python postgre sql a wonderful wedding
Python postgre sql   a wonderful weddingPython postgre sql   a wonderful wedding
Python postgre sql a wonderful wedding
 
MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
 

Viewers also liked

5. Queue - Data Structures using C++ by Varsha Patil
5. Queue - Data Structures using C++ by Varsha Patil5. Queue - Data Structures using C++ by Varsha Patil
5. Queue - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...widespreadpromotion
 
A project report on indian mobile market
A project report on indian mobile marketA project report on indian mobile market
A project report on indian mobile marketProjects Kart
 
A project report on brand preference of mobile phones
A project report on brand preference of mobile phonesA project report on brand preference of mobile phones
A project report on brand preference of mobile phonesProjects Kart
 
Project report on brand preference of mobile phones with special reference to...
Project report on brand preference of mobile phones with special reference to...Project report on brand preference of mobile phones with special reference to...
Project report on brand preference of mobile phones with special reference to...Projects Kart
 
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tk
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tkNGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tk
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tktksphan
 
альманах "Ми - єдина родина."
альманах "Ми - єдина родина."альманах "Ми - єдина родина."
альманах "Ми - єдина родина."nataliyu roschina
 
01. sistemas de control grado 10
01. sistemas de control grado 1001. sistemas de control grado 10
01. sistemas de control grado 10luale1824
 
Rodney Harris Resume 3
Rodney Harris Resume 3Rodney Harris Resume 3
Rodney Harris Resume 3Rodney Harris
 
La energía renovable
La energía renovableLa energía renovable
La energía renovableConMuchoFlow
 

Viewers also liked (14)

Sixth sense
Sixth senseSixth sense
Sixth sense
 
14. Linked List
14. Linked List14. Linked List
14. Linked List
 
5. Queue - Data Structures using C++ by Varsha Patil
5. Queue - Data Structures using C++ by Varsha Patil5. Queue - Data Structures using C++ by Varsha Patil
5. Queue - Data Structures using C++ by Varsha Patil
 
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
2. Linear Data Structure Using Arrays - Data Structures using C++ by Varsha P...
 
A project report on indian mobile market
A project report on indian mobile marketA project report on indian mobile market
A project report on indian mobile market
 
Project Report
Project ReportProject Report
Project Report
 
A project report on brand preference of mobile phones
A project report on brand preference of mobile phonesA project report on brand preference of mobile phones
A project report on brand preference of mobile phones
 
Project report on brand preference of mobile phones with special reference to...
Project report on brand preference of mobile phones with special reference to...Project report on brand preference of mobile phones with special reference to...
Project report on brand preference of mobile phones with special reference to...
 
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tk
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tkNGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tk
NGỮ PHÁP N3 TRONG TIẾNG NHẬT http://www.listeningnihongo.tk
 
альманах "Ми - єдина родина."
альманах "Ми - єдина родина."альманах "Ми - єдина родина."
альманах "Ми - єдина родина."
 
Desert Period 3
Desert Period 3Desert Period 3
Desert Period 3
 
01. sistemas de control grado 10
01. sistemas de control grado 1001. sistemas de control grado 10
01. sistemas de control grado 10
 
Rodney Harris Resume 3
Rodney Harris Resume 3Rodney Harris Resume 3
Rodney Harris Resume 3
 
La energía renovable
La energía renovableLa energía renovable
La energía renovable
 

Similar to New text document

Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6phoe3
 
Eve - REST API for Humans™
Eve - REST API for Humans™Eve - REST API for Humans™
Eve - REST API for Humans™Nicola Iarocci
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing Swakriti Rathore
 
Look Ma, “update DB to HTML5 using C++”, no hands! 
Look Ma, “update DB to HTML5 using C++”, no hands! Look Ma, “update DB to HTML5 using C++”, no hands! 
Look Ma, “update DB to HTML5 using C++”, no hands! aleks-f
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up恵寿 東
 
Fcontratos
FcontratosFcontratos
Fcontratoskarlloss
 
C++ adt c++ implementations
C++   adt c++ implementationsC++   adt c++ implementations
C++ adt c++ implementationsRex Mwamba
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYMalikireddy Bramhananda Reddy
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
Microprocessor and micro-controller lab (assembly programming)
Microprocessor and micro-controller lab (assembly programming)Microprocessor and micro-controller lab (assembly programming)
Microprocessor and micro-controller lab (assembly programming)shamim hossain
 
c++ project
c++ projectc++ project
c++ projectTrish004
 
Agile Testing Days 2018 - API Fundamentals - postman collection
Agile Testing Days 2018 - API Fundamentals - postman collectionAgile Testing Days 2018 - API Fundamentals - postman collection
Agile Testing Days 2018 - API Fundamentals - postman collectionJoEllen Carter
 

Similar to New text document (20)

Hospital management
Hospital managementHospital management
Hospital management
 
Hospital management
Hospital managementHospital management
Hospital management
 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6
 
Eve - REST API for Humans™
Eve - REST API for Humans™Eve - REST API for Humans™
Eve - REST API for Humans™
 
c++ project on restaurant billing
c++ project on restaurant billing c++ project on restaurant billing
c++ project on restaurant billing
 
Look Ma, “update DB to HTML5 using C++”, no hands! 
Look Ma, “update DB to HTML5 using C++”, no hands! Look Ma, “update DB to HTML5 using C++”, no hands! 
Look Ma, “update DB to HTML5 using C++”, no hands! 
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
 
Fcontratos
FcontratosFcontratos
Fcontratos
 
C++ adt c++ implementations
C++   adt c++ implementationsC++   adt c++ implementations
C++ adt c++ implementations
 
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDYDATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
 
Project in programming
Project in programmingProject in programming
Project in programming
 
Couchdb
CouchdbCouchdb
Couchdb
 
Rabia
RabiaRabia
Rabia
 
Railwaynew
RailwaynewRailwaynew
Railwaynew
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
ShopC++
ShopC++ShopC++
ShopC++
 
Microprocessor and micro-controller lab (assembly programming)
Microprocessor and micro-controller lab (assembly programming)Microprocessor and micro-controller lab (assembly programming)
Microprocessor and micro-controller lab (assembly programming)
 
c++ project
c++ projectc++ project
c++ project
 
Agile Testing Days 2018 - API Fundamentals - postman collection
Agile Testing Days 2018 - API Fundamentals - postman collectionAgile Testing Days 2018 - API Fundamentals - postman collection
Agile Testing Days 2018 - API Fundamentals - postman collection
 
CGI.pm - 3ло?!
CGI.pm - 3ло?!CGI.pm - 3ло?!
CGI.pm - 3ло?!
 

Recently uploaded

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 

Recently uploaded (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 

New text document

  • 1. //BLOOD BANK MANAGEMENT SYSTEM AS A DOUPLY LINK LIST PROJECT. #include<conio.h> #include<windows.h> #include<iostream> #include<math.h> #include<string> using namespace std; struct node{ string name,gender,blood_grp,address; int age; long double cell_no,id; node *link; node *prev; }; class logo{ public: logo(){ } void set(){system("color 3F"); Sleep(500);cout<<"nntttt xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB"; Sleep(500);cout<<"nntttt xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB"; Sleep(200);cout<<"nnttt WELL COME TO BLOOD BANK MANAGMENT SYSTEM"; Sleep(500);cout<<"nntttt xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB"; Sleep(500);cout<<"nntttt xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDBxDB"; system("color 2B");} void login(){ string pass = "hamza10"; string user ; cout << "nttENTER YOUR PASSWORD TO THIS PROJECT ==::"; cin >> user; while(pass !=user) { cout<< "password is wrongn"; cout<<"Enter correct password"; cin >> user; } system("color 2F"); } }; class blood{ private: string name,gender,blood_grp,address; int age; long double cell_no,id; int n,i; node *start,*temp,*curr,*end; public: blood(){ start=NULL;
  • 2. } void insert(){ //cout<<"HOW MANY DONER GIVE BLOOD "<<endl; //cout<<"ttplease enter______:"; //cout<<"tt";cin>>n; //for(i=1;i<n+1;i++){ cout<<"ttENTER DONER ID___:"; cout<<"t";cin>>id; cout<<"ttENTER NAME----:tt"; cin.sync(); getline(cin,name); // cin>>name; cout<<"ttENTER GENDER---:t"; cin.sync(); getline(cin,gender); cout<<"ttENTER BLOOD GROUP___:t"; cin>>blood_grp; cout<<"ttENTER ADDRESS____:t"; cin.sync(); getline(cin,address); cout<<"ttENTER AGE___:tt"; cin>>age; cout<<"ttENTER MOBILE NO____:t"; cin>>cell_no; cout<<"nYour Record=:"" Has been Success Fully insertedn"; if(start==NULL) { start=new node; start->id=id; start->name=name; start->gender=gender; start->blood_grp=blood_grp; start->address=address; start->age=age; start->cell_no=cell_no; start->link=NULL; start->prev=NULL; } else { curr=start; while(curr->link!=NULL) { curr=curr->link; } temp=new node; temp->id=id; temp->name=name; temp->gender=gender; temp->blood_grp=blood_grp; temp->address=address; temp->age=age; temp->cell_no=cell_no; curr->link=temp; temp->link=NULL; temp->prev=curr; }
  • 3. } void insert_specific(){ int pos; if(start==NULL) cout<<"tt THERE IS NO DATA"; else{ cout<<"tt ENTER Position Where u want to add"; cout<<"ntt";cin>>pos; curr=start; for(int i=1;i<pos-1;i++) { curr=curr->link; } temp=new node; cout<<"tENTER DONER ID___:"; cout<<"t";cin>>id; temp->id=id; cout<<"tENTER NAME----:"; cin.sync(); getline(cin,name); temp->name=name; cout<<"tENTER GENDER---:"; cin.sync(); getline(cin,gender); temp->gender=gender; cout<<"tENTER BLOOD GROUP___:"; cin>>blood_grp; temp->blood_grp=blood_grp; cout<<"tENTER ADDRESS____:"; cin.sync(); getline(cin,address); temp->address=address; cout<<"tENTER AGE___:"; cin>>age; temp->age=age; cout<<"tENTER MOBILE NO____:"; cin>>cell_no; temp->cell_no=cell_no; cout<<"nYour Record=:"" Has been Success Fully insertedn"; temp->link=curr->link; temp->prev=curr; curr->link=temp; } } void display(){ if(start==NULL) {cout<<"NO Data Found"; return;} else{ curr=start; //cout<<"start="<<start<<endl; //cout<<"start link="<<start->link<<endl; //system("pause"); while(curr->link!=NULL) { cout<<"ttDONER ID IS=:t"<<curr->id<<endl; cout<<"ttNAME OF DONER=:t"<<curr->name<<endl; cout<<"ttDONER AGE=:t"<<curr->age<<endl; cout<<"ttDONER GENDER=t:"<<curr->gender<<endl; cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl; cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl; cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl;
  • 4. //system("pause"); curr=curr->link; } cout<<"ttDONER ID IS=:t"<<curr->id<<endl; cout<<"ttNAME OF DONER=:t"<<curr->name<<endl; cout<<"ttDONER AGE=:t"<<curr->age<<endl; cout<<"ttDONER GENDER=:t"<<curr->gender<<endl; cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl; cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl; cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl; //system("pause"); }} void checkbloodgrp(){ system("color 4B"); //int found=-1; string type; if(start==NULL) cout<<"tt No RECORD"<<endl; else{ cout<<"ttENTER the BLOOD type"<<endl; cin>>type; curr=start; while(curr!=NULL){ if(curr->blood_grp ==type) { cout<<"ttDONER ID IS=:t"<<curr->id<<endl; cout<<"ttNAME OF DONER=:t"<<curr->name<<endl; cout<<"ttDONER AGE=:t"<<curr->age<<endl; cout<<"ttDONER GENDER=:t"<<curr->gender<<endl; cout<<"tt DONER BLOOD GROUP=:t"<<curr- >blood_grp<<endl; cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl; cout<<"ttDONER MOBILE NO=:t"<<curr- >cell_no<<endl; }//cout<<" no donors found"; curr=curr->link; }} } void check_age(){ system("color 2B"); if(start==NULL) cout<<"no record in this"<<endl; else{ curr=start; //int found=0; while(curr!=NULL){ if(curr->age>16 && (curr->gender=="f"||curr->gender=="m")){ cout<<"ttDONER ID IS=:t"<<curr->id<<endl; cout<<"ttNAME OF DONER=:t"<<curr->name<<endl; cout<<"ttDONER AGE=:t"<<curr->age<<endl; cout<<"ttDONER GENDER=:t"<<curr->gender<<endl; cout<<"tt DONER BLOOD GROUP=:t"<<curr->blood_grp<<endl; cout<<"ttDONER ADDRESS=:t"<<curr->address<<endl; cout<<"ttDONER MOBILE NO=:t"<<curr->cell_no<<endl; } curr=curr->link; } cout<<"ntt NO DATA FOUND"; }
  • 5. } void count(){ system("color 2F"); int count = 0; if(start==NULL) cout<<" THERE IS NO DATAn"; else{ curr=start; while(curr!= NULL){ count++; curr=curr->link; } cout<<"NUMBER OF DONER IN LIST IS::t"<<count<<endl; system("color 5F"); } } void del_start(){ system("color 4F"); if(start==NULL) cout<<"ttNO DATA "<<endl; else{ curr=start; while(curr->link!=NULL){ if(curr==start) start=curr->link; start->prev=NULL; delete curr; cout<<"tfirst record has been deleted"; break; } } } void delspecific(){ system("color 46"); string ch; if(start==NULL) cout<<"no data"; else{ cout<<"enter value to delete"<<endl; cout<<"ntt";cin>>ch; curr=temp=start; while(curr->link!=NULL) { if(curr->name==ch) { cout<<"value found"<<endl; temp->link=curr->link; end->prev=temp; delete curr; break; } temp=curr; curr=curr->link; end=curr->link; } } } void del_all(){ start=NULL;
  • 6. display(); cout<<"nnYour all record has been deleted...."<<endl; system("color 22"); } void About_Dev() { system("color 2F"); cout<<"nttttxDBxDBxDBxDBxDBxDB About Developer xDBxDBxDBxDBxDBxDBxDBxDBxDBnn"; //cout<<"nttttxDBxDBxDBxDBxDBxDBxDBxDB All Rights Reserved xDBxDBxDBxDBxDBxDBxDBxDBxDBxDBn"; Sleep(600);cout<<"nttCoder Name : MUAWAZ";Sleep(600);cout<<" AYYAZ";Sleep(600);cout<<" GUJJARn";Sleep(600); Sleep(500);cout<<"nttCoder Name : USMAN";Sleep(500);cout<<" ALI";Sleep(400);cout<<" warriachn";Sleep(600); Sleep(300);cout<<"nttCoder Name : ABDUL MANAN";Sleep(300);cout<<" HAMZA";Sleep(300);cout<<" ARAIENn";Sleep(300); cout<<"nttPlatform :Visual Studio OR DEV-C++ n"; cout<<"nttLanguage :C++n"; Sleep(500); system("color 2F"); } }; int main(){ logo l; l.set(); l.login(); blood b; int val; system("color 4F"); while(1){ Sleep(100);cout<<"ntt INESRT #: 1 FOR ENTER BLOOD DONOR DATA"; Sleep(150);cout<<"ntt INESRT #: 2 FOR ENTER At SPECIFIC BLOOD DONOR DATA"; Sleep(50) ;cout<<"ntt INESRT #: 3 FOR CHECK BLOOD GROUP"; Sleep(40) ;cout<<"ntt INESRT #: 4 BLOOD DONORS IN AGE GROUP ABOVE 16"; Sleep(30);cout<<"ntt INESRT #: 5 to DISPLAY ALL DATA"; Sleep(15);cout<<"ntt INESRT #: 6 to delete at first location"; Sleep(15);cout<<"ntt INESRT #: 7 to delete at specific location"; Sleep(12);cout<<"ntt INESRT #: 8 to check the total number of doner"; Sleep(30);cout<<"ntt INESRT #: 9 to DELETE ALL DATA"; Sleep(9);cout<<"ntt INESRT #: 10 FOR About Developer"; Sleep(10) ;cout<<"n ttEnter your Choice : "; cout<<"tt";cin>>val; switch(val){ case 1: b.insert(); break;
  • 7. case 2: b.insert_specific(); break; case 3: b.checkbloodgrp(); break; case 4: b.check_age(); break; case 5: b.display(); break; case 6: b.del_start(); break; case 7: b.delspecific(); break; case 8: b.count(); break; case 9: b.del_all(); break; case 10: b.About_Dev(); break; } } _getch(); return 0; }