This document describes a C++ program that generates name lists. It includes the coding for the main functions like inserting, viewing, modifying, deleting, and searching student records stored in a text file. The program uses classes, file handling functions, and switch cases to provide a menu-driven interface for performing the different operations on student data. It provides sample outputs to demonstrate how the program works and displays the records before and after various operations.
This document describes a C++ program that generates name lists. It includes the coding for the main functions like inserting, viewing, modifying, deleting, and searching student records stored in a text file. The program uses classes, file handling functions, and switch cases to provide a menu-driven interface for performing the different operations on student data. It provides sample outputs to demonstrate how the program works and displays the records before and after various operations.
This document is a project report submitted by three students of class 12 for their Computer Science examination. It outlines the development of a Hotel Management System using Python coding. The project introduction describes the group members and their roles in coding and analyzing the system. It also thanks various individuals for their support. The document further provides system requirements, outlines the Python coding for the hotel management modules, and describes the outputs of the project.
Shikh Mohammad Usman Haidar , BCA Third YearDezyneecole
This document describes a C++ program for generating a name list. It includes functions for inserting, viewing, modifying, deleting, and searching student records stored in a file. The main menu allows selecting these options to add, view, edit, or find a student's name, class, ID and city details stored in a text file database. Functions use file input/output streams, string comparisons and screen positioning commands to manage the student records and display messages.
Class 12th computer science C++ coding for Banking System program.
Features in Program:
1. New Account
2. Deposit Amount
3. Withdraw Amount
4. All Account Holder List
5. Delete Account
6. Edit Account
7. Exit
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole Collegedezyneecole
Student of Dezyne E'cole College ,doing his Degree Programme in Bachelors Degree in Computer Application. .Along with the Degree programme the student is also updating his industry required skills of IT through the regular work sessions taken during the 365 days of study at college. .This is a work showcase of the work of this student after Two year of his study of Bachelors Degree in Computer Application.
www.dezyneecole.com
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Pratibha Kumari, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
More Related Content
Similar to Bhanu Pratap Singh Shekhawat, BCA Third Year
This document is a project report submitted by three students of class 12 for their Computer Science examination. It outlines the development of a Hotel Management System using Python coding. The project introduction describes the group members and their roles in coding and analyzing the system. It also thanks various individuals for their support. The document further provides system requirements, outlines the Python coding for the hotel management modules, and describes the outputs of the project.
Shikh Mohammad Usman Haidar , BCA Third YearDezyneecole
This document describes a C++ program for generating a name list. It includes functions for inserting, viewing, modifying, deleting, and searching student records stored in a file. The main menu allows selecting these options to add, view, edit, or find a student's name, class, ID and city details stored in a text file database. Functions use file input/output streams, string comparisons and screen positioning commands to manage the student records and display messages.
Class 12th computer science C++ coding for Banking System program.
Features in Program:
1. New Account
2. Deposit Amount
3. Withdraw Amount
4. All Account Holder List
5. Delete Account
6. Edit Account
7. Exit
Umesh Taglani,Project on C language,Final Year BCA ,Dezyne E'cole Collegedezyneecole
Student of Dezyne E'cole College ,doing his Degree Programme in Bachelors Degree in Computer Application. .Along with the Degree programme the student is also updating his industry required skills of IT through the regular work sessions taken during the 365 days of study at college. .This is a work showcase of the work of this student after Two year of his study of Bachelors Degree in Computer Application.
www.dezyneecole.com
Similar to Bhanu Pratap Singh Shekhawat, BCA Third Year (20)
Pratibha Kumari, Diploma Fashion Design First Year, (Basic Pattern Developmen...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Pratibha Kumari, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Basic Pattern Development P...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Fashion illustration for Fa...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Embroidery Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Fashion Draping Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Shaily Goyar, Diploma Fashion Design First Year, (Design Basics Project)Dezyneecole
Shaily Goyar submitted a project report on design basics during her first year of a fashion design diploma program. The report explores various elements of design like line, shape, form, color, and principles of design. It includes sections on topics such as line emphasis, diagonal lines, shape illusion, symmetry, texture, color theory, and how elements work together. The project was created to help her better understand how design elements can be applied in fashion and graphic design. It was reviewed and graded by the principal of her college.
Shaily Goyar, Diploma Fashion Design First Year, (Corel Draw Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Shaily Goyar, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Tanya Jain, Diploma Fashion Design First Year, (Fashion illustration for Fash...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Tanya Jain, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Tanya Jain , Diploma Fashion Design First Year, (Basic Pattern Development Pr...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Tanya Jain, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Tanya Jain, Diploma Fashion Design First Year, (Embroidery Project)Dezyneecole
This document is a project report by Tanya Jain on various embroidery techniques. It includes acknowledgments, an introduction, descriptions and photos of different embroidery stitches like feather stitch, knotted cable stitch, satin stitch, and techniques like ribbon work and mirror work. The principal graded the project. Tanya explored various embroidery approaches and their use in fashion design as part of her diploma studies. She provided examples of different stitches to understand how embroidery affects fashion design.
Tanya Jain, Diploma Fashion Design First Year, (Fashion Draping Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Tanya Jain, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Portfolio Of Student Of Dezyne E'cole College , Tanya Jain, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Gouri Ramchandani, Diploma Fashion Design First Year, (Illustration For Fashi...Dezyneecole
This document is a project report by Gouri Ramchandani, a first year fashion design student, on fashion illustration techniques. It includes acknowledgments, an introduction, content pages listing techniques covered such as stippling, cross hatching, croquis, and illustrations demonstrating these techniques. The report covers topics like motion figures, shading, color techniques, and inspiration boards. At the end, Gouri's work is graded by the principal of Dezyne E'Cole college where she is studying for her diploma in fashion design.
Gouri Ramchandani, Diploma Fashion Design First Year, (Basic Pattern Developm...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Gouri Ramchandani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Gouri Ramchandani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Gouri Ramchandani, Diploma Fashion Design First Year, (Design Basics Project)Dezyneecole
This document is a project report by Gouri Ramchandani, a student of 1st year Fashion Design diploma at NSQF level 5, on design basics. It includes an acknowledgment, synopsis, and content sections covering various design elements and principles like lines, shapes, space, color theory, and their application in fashion. The project contains examples and explanations of techniques for creating visual effects using fundamental design concepts. Gouri thanks those who helped her complete the project within the limited time frame as part of her course curriculum.
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Dezyneecole
This document is a project report by Gouri Ramchandani, a first year fashion design student, on using Corel Draw for graphic design. The report acknowledges those who helped and supported her project. It includes an introduction, content sections on techniques like dots, lines, fills, and effects. The bulk of the report shows Gouri's work experimenting with these Corel Draw elements and techniques and how they can be used for fashion design. It concludes by thanking the reader for reviewing her project.
Dimple Mordani, Diploma Fashion Design First Year, (Embroidery Project)Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Dimple Mordani, Diploma Fashion Design First Year, (Basic Pattern Development...Dezyneecole
Portfolio Of Student Of Dezyne E'cole College , Dimple Mordani, First Year Fashion Design.This Is The Portfolio Of Her Work From First Year .For More Details Visit www.dezyneecole.com
Walmart Business+ and Spark Good for Nonprofits.pdfTechSoup
"Learn about all the ways Walmart supports nonprofit organizations.
You will hear from Liz Willett, the Head of Nonprofits, and hear about what Walmart is doing to help nonprofits, including Walmart Business and Spark Good. Walmart Business+ is a new offer for nonprofits that offers discounts and also streamlines nonprofits order and expense tracking, saving time and money.
The webinar may also give some examples on how nonprofits can best leverage Walmart Business+.
The event will cover the following::
Walmart Business + (https://business.walmart.com/plus) is a new shopping experience for nonprofits, schools, and local business customers that connects an exclusive online shopping experience to stores. Benefits include free delivery and shipping, a 'Spend Analytics” feature, special discounts, deals and tax-exempt shopping.
Special TechSoup offer for a free 180 days membership, and up to $150 in discounts on eligible orders.
Spark Good (walmart.com/sparkgood) is a charitable platform that enables nonprofits to receive donations directly from customers and associates.
Answers about how you can do more with Walmart!"
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPRAHUL
This Dissertation explores the particular circumstances of Mirzapur, a region located in the
core of India. Mirzapur, with its varied terrains and abundant biodiversity, offers an optimal
environment for investigating the changes in vegetation cover dynamics. Our study utilizes
advanced technologies such as GIS (Geographic Information Systems) and Remote sensing to
analyze the transformations that have taken place over the course of a decade.
The complex relationship between human activities and the environment has been the focus
of extensive research and worry. As the global community grapples with swift urbanization,
population expansion, and economic progress, the effects on natural ecosystems are becoming
more evident. A crucial element of this impact is the alteration of vegetation cover, which plays a
significant role in maintaining the ecological equilibrium of our planet.Land serves as the foundation for all human activities and provides the necessary materials for
these activities. As the most crucial natural resource, its utilization by humans results in different
'Land uses,' which are determined by both human activities and the physical characteristics of the
land.
The utilization of land is impacted by human needs and environmental factors. In countries
like India, rapid population growth and the emphasis on extensive resource exploitation can lead
to significant land degradation, adversely affecting the region's land cover.
Therefore, human intervention has significantly influenced land use patterns over many
centuries, evolving its structure over time and space. In the present era, these changes have
accelerated due to factors such as agriculture and urbanization. Information regarding land use and
cover is essential for various planning and management tasks related to the Earth's surface,
providing crucial environmental data for scientific, resource management, policy purposes, and
diverse human activities.
Accurate understanding of land use and cover is imperative for the development planning
of any area. Consequently, a wide range of professionals, including earth system scientists, land
and water managers, and urban planners, are interested in obtaining data on land use and cover
changes, conversion trends, and other related patterns. The spatial dimensions of land use and
cover support policymakers and scientists in making well-informed decisions, as alterations in
these patterns indicate shifts in economic and social conditions. Monitoring such changes with the
help of Advanced technologies like Remote Sensing and Geographic Information Systems is
crucial for coordinated efforts across different administrative levels. Advanced technologies like
Remote Sensing and Geographic Information Systems
9
Changes in vegetation cover refer to variations in the distribution, composition, and overall
structure of plant communities across different temporal and spatial scales. These changes can
occur natural.
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumMJDuyan
(𝐓𝐋𝐄 𝟏𝟎𝟎) (𝐋𝐞𝐬𝐬𝐨𝐧 𝟏)-𝐏𝐫𝐞𝐥𝐢𝐦𝐬
𝐃𝐢𝐬𝐜𝐮𝐬𝐬 𝐭𝐡𝐞 𝐄𝐏𝐏 𝐂𝐮𝐫𝐫𝐢𝐜𝐮𝐥𝐮𝐦 𝐢𝐧 𝐭𝐡𝐞 𝐏𝐡𝐢𝐥𝐢𝐩𝐩𝐢𝐧𝐞𝐬:
- Understand the goals and objectives of the Edukasyong Pantahanan at Pangkabuhayan (EPP) curriculum, recognizing its importance in fostering practical life skills and values among students. Students will also be able to identify the key components and subjects covered, such as agriculture, home economics, industrial arts, and information and communication technology.
𝐄𝐱𝐩𝐥𝐚𝐢𝐧 𝐭𝐡𝐞 𝐍𝐚𝐭𝐮𝐫𝐞 𝐚𝐧𝐝 𝐒𝐜𝐨𝐩𝐞 𝐨𝐟 𝐚𝐧 𝐄𝐧𝐭𝐫𝐞𝐩𝐫𝐞𝐧𝐞𝐮𝐫:
-Define entrepreneurship, distinguishing it from general business activities by emphasizing its focus on innovation, risk-taking, and value creation. Students will describe the characteristics and traits of successful entrepreneurs, including their roles and responsibilities, and discuss the broader economic and social impacts of entrepreneurial activities on both local and global scales.
Main Java[All of the Base Concepts}.docxadhitya5119
This is part 1 of my Java Learning Journey. This Contains Custom methods, classes, constructors, packages, multithreading , try- catch block, finally block and more.
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
Communicating effectively and consistently with students can help them feel at ease during their learning experience and provide the instructor with a communication trail to track the course's progress. This workshop will take you through constructing an engaging course container to facilitate effective communication.
1. SUBMITED BY
Bhanu Pratap Singh Shekhawat
Bachelor of Computer Application II YEAR
Dezyne E’cole College
www.dezyneecole.com
INFORMATION TECHNOLOGY
PROJECT REPORT
C++ PROGRAMMING
E-Mail Validator
TOPIC
C++
2. Project Report
On
C++ Programming
At
Dezyne E’cole College
Ajmer
Submitted to
Dezyne E’cole College
Towards the
Partial Fulfillment on
Bachelor of Computer Application
By
Bhanu Pratap Singh Shekhawat
Dezyne E’cole College
106/10 Civil Line, Ajmer
Tel – 0145-2624679
Www.dezyneecole.com
2016
3. Acknowledgement
I Bhanu Pratap Singh Shekhawat, Student On Dezyne E’cole College,
An Extremely Grateful To Each And Every Individual. Who Has
Contributed. In Successful Completion Of My Project. I Express My
Gratitude Towards Dezyne E’cole College For Their. Guidance and
Contrast Supervision As Well As For Providing The Necessary
Information And Support Regarding The Completion Of Project
Thank You
4. 1 | P a g e
Synopsis
This Project Is A Minor. Project Made, Based On The Practical Concept
Of C++ This Project Has Made Our Basic Practical Concepts On C++
Strong
17. 14 | P a g e
{
main();
}
else
{
goto signbuttk;
}
}
else
{
gotoxy(26,14); //wrong input
cprintf("Wrong input");
getch();
clrscr();
goto l2;
}
acs:
}
/*Use store sign up data*/
void datain()
{
f.open("valid.dat",ios::app | ios::out);
f.write((char *)&a,sizeof(a));
f.close();
}
/*Log in page*/
void loginid()
18. 15 | P a g e
{
ll:
white();
textbackground(6);
for(int i=25;i<55;i++)
{
for(int j=8;j<15;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
gotoxy(49,14);
cprintf("L");
gotoxy(41,14);
cprintf("C");
gotoxy(37,8);
cprintf("Login");
textbackground(WHITE);
for(i=35;i<53;i++)
{
gotoxy(i,10);
cprintf(" ");
}
for(i=35;i<53;i++)
{
19. 16 | P a g e
gotoxy(i,12);
cprintf(" ");
}
textcolor(7);
textbackground(6);
gotoxy(50,14);
cprintf("ogin");
gotoxy(42,14);
cprintf("ancel");
gotoxy(32,10);
cprintf("Id");
gotoxy(26,12);
cprintf("Password");
int sp,com;
sp=com=0;
gotoxy(35,10); // for input id
gets(a.id);
gotoxy(35,10);
cout<<a.id<<"@dec.com";
for(i=0;a.id[i]!='0';i++)
{
if(a.id[i]==32)
{
sp++;
}
}
if(a.id[i-4]=='.' && a.id[i-3]=='c' && a.id[i-2]=='o' && a.id[i-1]=='m')
20. 17 | P a g e
{
com++;
}
if(sp==0 && com==0)
{
gotoxy(35,12); //for input password
int sic=-1;
while(a.password[sic]!=13)
{
sic++;
a.password[sic]=getch();
cout<<"*";
if(a.password[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
a.password[sic]='0';
// gets(password);
logpressopp:
gotoxy(51,14);
char logpress;
logpress=getch();
if(logpress=='l' || logpress=='L')
{
goto ln;
21. 18 | P a g e
}
else if(logpress=='C' || logpress=='c')
{
main();
}
else
{
goto logpressopp;
}
}
else
{
gotoxy(28,14); //wrong input
cprintf("Wrong input");
getch();
clrscr();
goto ll;
}
ln:
}
/*data out of id*/
void dout()
{
loginid();
save w;
int da=0;
f.open("valid.dat",ios::in);
22. 19 | P a g e
while(f)
{
f.read((char *)&w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0)
{
strcpy(a.fn,w.fn);
strcpy(a.ln,w.ln);
strcpy(a.ci,w.ci);
strcpy(a.st,w.st);
strcpy(a.cou,w.cou);
strcpy(a.date,w.date);
da++;
break;
}
else if(f==0)
{
break;
}
else
{
continue;
}
}
f.close();
if(da==0)
{
gotoxy(26,14); //Id not available
23. 20 | P a g e
cprintf("Access denied");
delay(2100);
main();
}
}
void loginopp()
{
white();
textbackground(6);
for(int i=26;i<57;i++)
{
for(int j=7;j<22;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(BLACK);
for(i=26;i<57;i++)
{
gotoxy(i,6);
cprintf("-");
}
for(i=26;i<57;i++)
{
gotoxy(i,9);
cprintf("-");
24. 21 | P a g e
}
gotoxy(31,20);
cprintf("Choose your operation");
gotoxy(27,7);
cprintf("Welcome ");
cout<<a.fn;
gotoxy(35,8);
cout<<a.ln;
textcolor(7);
gotoxy(32,10);
cprintf("1. View");
gotoxy(32,12);
cprintf("2. Modify detail");
gotoxy(32,14);
cprintf("3. Change password");
gotoxy(32,16);
cprintf("4. Log out");
}
void view()
{
white();
textbackground(6);
for(int i=15;i<68;i++)
{
for(int j=6;j<21;j++)
{
gotoxy(i,j);
25. 22 | P a g e
cprintf(" ");
}
}
textcolor(0);
gotoxy(61,19);
cprintf("B");
for(i=15;i<68;i++)
{
gotoxy(i,6);
cprintf("-");
}
for(i=15;i<68;i++)
{
gotoxy(i,8);
cprintf("-");
}
textcolor(WHITE);
gotoxy(62,19);
cprintf("ACK");
gotoxy(27,7);
cprintf(" ");
gotoxy(17,9);
cprintf("You are Miss/Mr ");
gotoxy(22,11);
cprintf("in: ");
gotoxy(19,13);
cprintf("State: ");
26. 23 | P a g e
gotoxy(17,15);
cprintf("Country: ");
gotoxy(21,17);
cprintf("DOB: ");
gotoxy(32,7); //for id
cout<<a.id<<"@dec.com";
gotoxy(33,9); //for name
cout<<a.fn<<" "<<a.ln;
gotoxy(26,11); //city
cout<<a.ci;
gotoxy(26,13); //state
cout<<a.st;
gotoxy(26,15); //country
cout<<a.cou;
gotoxy(26,17); //date
int il=0;
while(a.date[il]!='0')
{
cout<<a.date[il];
il++;
}
}
/*Change password*/
void changepass()
{
bop:
nm:
27. 24 | P a g e
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(34,8);
cprintf("Change password ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
28. 25 | P a g e
char passn[20],passo[20],passc[20];
int ck=0;
gotoxy(24,10);
cprintf("Old password : ");
gotoxy(39,10); //old password
int sic=-1;
while(passo[sic]!=13)
{
sic++;
passo[sic]=getch();
cout<<"*";
if(passo[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passo[sic]='0';
// gets(passo);
if(strcmp(a.password,passo)==0)
{
gotoxy(24,12);
cprintf("New password : ");
gotoxy(39,12); //new password
sic=-1;
while(passn[sic]!=13)
{
29. 26 | P a g e
sic++;
passn[sic]=getch();
cout<<"*";
if(passn[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passn[sic]='0';
// gets(passn);
gotoxy(24,14);
cprintf("Confirm password : ");
gotoxy(43,14); //confirm password
int sic=-1;
while(passc[sic]!=13)
{
sic++;
passc[sic]=getch();
cout<<"*";
if(passc[sic]==8)
{
cout<<"b bb b";
sic-=2;
}
}
passc[sic]='0';
30. 27 | P a g e
// gets(passc);
if(strcmp(passn,passc)==0)
{
back:
char oppnext;
gotoxy(47,17);
oppnext=getch();
if(oppnext=='S' || oppnext=='s')
{
save w;
f.open("valid.dat",ios::in);
while(f)
{
f.read((char *) &w,sizeof(w));
if(strcmp(a.id,w.id)==0 &&
strcmp(a.password,w.password)==0)
{
strcpy(w.password,passn);
c.open("valid1.dat",ios::app | ios::in);
c.write((char *)&w,sizeof(w));
c.close();
ck++;
}
else if(f==0)
{
break;
}
31. 28 | P a g e
else
{
// c.write((char *) &w,sizeof(w));
c.open("valid1.dat",ios::app | ios::in);
c.write((char *)&w,sizeof(w));
c.close();
}
}
f.close();
remove("valid.dat");
rename("valid1.dat","valid.dat");
strcpy(a.password,passn);
}
else if(oppnext=='c' || oppnext=='C')
{
goto cp;
}
else
{
goto back;
}
}
else
{
gotoxy(25,17); //does not match
cprintf("Password does not match");
delay(2000);
32. 29 | P a g e
clrscr();
goto nm;
}
}
else
{
gotoxy(25,17); // wrong input
cprintf("Wrong input");
delay(700);
clrscr();
goto bop;
}
if(ck>=1)
{
gotoxy(22,17); //password change sucessfully
cprintf("Password change sucessfull");
delay(1000);
}
else
{
gotoxy(22,17); //password not change sucessfully
cprintf("Password not changed");
delay(1000);
}
cp:
}
/*Modify detail*/
33. 30 | P a g e
void modify()
{
white();
textbackground(6);
for(int i=27;i<57;i++)
{
for(int j=6;j<20;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
for(i=27;i<57;i++)
{
gotoxy(i,7);
cprintf("-");
}
for(i=27;i<57;i++)
{
gotoxy(i,18);
cprintf("-");
}
gotoxy(36,19);
cprintf("Choose option");
gotoxy(38,6);
cprintf("Modify");
34. 31 | P a g e
textcolor(7);
gotoxy(29,8);
cprintf("1. Change First name");
gotoxy(29,10);
cprintf("2. Change City");
gotoxy(29,12);
cprintf("3. Change State");
gotoxy(29,14);
cprintf("4. Change Country");
gotoxy(29,16);
cprintf("5. Back");
}
/*Change first name*/
void changefn()
{
bop:
white();
textbackground(6);
for(int i=21;i<61;i++)
{
for(int j=8;j<18;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
textcolor(0);
35. 32 | P a g e
for(i=21;i<61;i++)
{
gotoxy(i,16);
cprintf("-");
}
gotoxy(55,17);
cprintf("S");
gotoxy(47,17);
cprintf("C");
gotoxy(31,8);
cprintf("Change first name ");
textcolor(WHITE);
gotoxy(56,17);
cprintf("ave");
gotoxy(48,17);
cprintf("ancel");
char fnn[40],fno[40];
int ck=0;
gotoxy(24,10);
cprintf("Old name : ");
gotoxy(35,10); //old name
gets(fno);
if(strcmp(a.fn,fno)==0)
{
gotoxy(24,12);
cprintf("New name : ");
gotoxy(35,12); //new name