SlideShare a Scribd company logo
Computer
Science
Project
2014-2015
Ashwin Francis
1. Bona fide Certificate
2. Declaration
3. Acknowledgement
4. Introduction to c++
5. Introduction to Project
6. Codings
7. Outputs
8. Bibliography
This is to certify that the project entitled “STUDENT
MANAGEMENT” is a record of bonafide work
carried out by “Ashwin Francis 12th
A,Nikunj 12th
A,Shubham Negi 12th
A”.In partial fulfilment of the
requirements in COMPUTER SCIENCE prescribed by
CBSE for CBSE BOARD 2014-2015 in the school
Kendriya Vidyalaya Gole Market,New Delhi 110001.
DATE PRINCIPAL
INTERNAL EXTERNAL
EXAMINER EXAMINER
We hereby declare that the project work entitled
“STUDENT MANAGEMENT“. Submitted to
KENDRIYA VIDYALAYA GOLE MARKET, NEW DELHI for
the Subject of “COMPUTER SCIENCE“. Under the
guidance of Mrs.Neera Singhal, PGT(Comp. Sc.), Is a
record of original work done by us.We further Declare
that this project record or any part of this has not been
Submitted elsewhere for any other class.
DATE MEMBERS
PLACE
We wish to express our sincere thanks to
Mr.DHEER SINGH Principal,Kendriya Vidyalaya
Gole Market, New Delhi for guiding us to cause
the successful outcome of this project work.
We wish to express our deep & profound sense of
gratitude to our guide/teacher Mrs.Neera Singhal,
PGT(Comp. Sc.), For her expert help &valuable
guidance, comments and suggestions.
We also place on record, our sincere Gratitude to
one and all who ,Directly or Indirectly ,Have Lent
their helping hand in this venture.
:- It is designed with a bias toward system programming (e.g., for use
in embedded systems or operating system kernels), with performance,
efficiency and flexibility of use as its design requirements. C++ has also been
found useful in many other contexts, including desktop applications, servers
(e.g. e-commerce, web search or SQL servers), performance-critical
applications (e.g. telephone switches or space probes), and entertainment
software.[3]
C++ is a compiled language, with implementations of it available on
many platforms and provided by various organizations, including
the FSF, LLVM, Microsoft and Intel.
:- C++ is standardized by the International Organization for
Standardization (ISO), with the latest (and current) standard version ratified
and published by ISO in September 2011 as ISO/IEC 14882:2011 (informally
known as C++11).[4]
The C++ programming language was initially standardised
in 1998 as ISO/IEC 14882:1998, which was then amended by the
C++03, ISO/IEC 14882:2003, standard. The current C++11 standard supersedes
these, with new features and an enlarged standard library. Before the initial
standardization in 1998, C++ was developed by Bjarne Stroustrup at Bell Labs,
starting in 1979, who wanted an efficient flexible language (like the C
language), which also provided high-level features for program organization.
Function:- A function is a group of statements that together perform a task.
Every C++ program has at least one function, which is main(), and all the most
trivial programs can define additional functions.
A function declaration tells the compiler about a function's name, return type,
and parameters. A functiondefinition provides the actual body of the function.
The C++ standard library provides numerous built-in functions that your
program can call. For example, function strcat() to concatenate two strings,
function memcpy() to copy one memory location to another location and
many more functions.
Class:- A class is a user defined type or data structure declared with
keyword class that has data and functions (also called methods) as its
members whose access is governed by the three access
specifiers private, protected or public (by default access to members of a class
is private). A class (declared with keyword class) in C++ differs from a structure
(declared with keyword struct) as by default, members are private in a class
while they are public in a structure. The private members are not accessible
outside the class; they can be accessed only through methods of the class.
Data FILE HANDLING:- The fstream library predefines a set of
operations for handling file related input and output. It defines
certain classes that help one perform file input and output. For ex,
ifstream class ties a file to the program for input ; ofstream class ties
a file to the program for output ; and fstream class ties a file to the
program for both input and output.
Every School needs to maintain Data bases of the students .The data
base on the students is required for general purpose like collection
fees Using this Software, under the Office module, the database on
the students can be created,modified. The same can be used to
verify whether any student is due for payment of term fees etc.
It is designed to introduce a conducive and structured information
exchange environment for integrating students. It enable
educational institutions to supervise student-related activities.
They are designed with diverse application potentials ranging from
simple management of students’ records at school to management
of all student-related functions as well as administrative functions of
a university or a chain of educational establishments.This software is
useful to maintain updated and error free status of all thestudents.
The Motive of this software is to dilute the work of office staffs, and
toreduce the use of paper.
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<ctype.h>
class stud
{
char name[50],ad[100];
long sid,ph;
int std,fees;
public:
void enter()
{ char ch;
cin.get(ch);
cout<<"ENTER STUDENT ID:n";
cin>>sid;
cout<<"ENTER STUDENT NAME:n";
gets(name);
cout<<"ENTER STUDENT CLASS:n";
cin>>std;
cout<<"ENTER STUDENT ADDRESS:n";
gets(ad);
cout<<"ENTER STUDENT PHONE NO.:n";
cin>>ph;
cout<<"ENTER STUDENT FEES:n";
cin>>fees;
}
void display()
{
cout<<"n"<<sid<<"t";
cout<<name<<"t";
cout<<"t"<<std<<"t";
cout<<ad;
cout<<"t"<<ph<<"t";
cout<<"t"<<fees;
}
long rsid()
{
return sid;
}
int password(char ch[4])
{
int n=0;
if(strcmp(ch,"kvgm")==0)
n=7;
return n;
}
char retname()
{
return name[50];
}
char retadd()
{
return ad[100];
}
};
int main()
{
int i,m,c,w;
char key[10],flag,flag1;
stud s1[100],s2;
fstream f,f1;
clrscr();
cout<<"tttSTUDENT MANAGEMENT PROGRAMnnnttt
CREATED BY nntttASHWIN FRANCISntttSHUBHAM
NEGIntttNIKUNJn";
cout<<"nENTER PASSWORD PLEASE:n";
gets(key);
m=s2.password(key);
if(m==0)
{
cout<<"nINVALID KEY PROGRAM TERMINATED";
getch();
return 1;
}
else
{
label:
clrscr();
cout<<"tttSTUDENT MANAGEMENT PROGRAMn";
cout<<"nSELECTION MENUn1.CREATE NEW DATABASEn2.DISPLAY
DATABASEn3.ADD TO DATABASEn4.DELETE FROM
DATABASEn5.SEARCHn6.EXITn";
cin>>c;
switch(c)
{
case 1:clrscr();
f.open("data.txt",ios::out);
cout<<"n-FILE HAS BEEN CREATED YOU CAN START
ENTERING DATA NOW-n";
char ch;
ch='y';
i=0;
while(ch=='y')
{
s1[i].enter();
f.write((char*)&s1[i],sizeof(s1[i]));
i++;
cout<<"nWANT TO ADD MORE DATA?nENTER(y/n):n";
cin>>ch;
}
f.close();
goto label;
case 2:clrscr();
f.open("data.txt",ios::in);
cout<<"n-FILE HAS OPENED YOU CAN VIEW DATA NOW
n";
f.seekg(0);
i=0;
cout<<"nIDtNAMEttCLASStADDRESSttPHONEttFEES";
while(!f.eof())
{
f.read((char*)&s1[i],sizeof(s1[i]));
s1[i].display();
i++;
}
f.close();
cout<<"nPRESS ENTER TO CONTINUE";
getch();
goto label;
case 3:clrscr();
f.open("data.txt",ios::app);
cout<<"n-FILE HAS BEEN OPENED YOU CAN START
ENTERING DATA NOW-n";
ch='y';
i=0;
while(ch=='y')
{
s1[i].enter();
f.write((char*)&s1[i],sizeof(s1[i]));
i++;
cout<<"nRECORD ADDED TO FILE.nnWANT TO ADD
MORE DATA?ENTER(y/n):n";
cin>>ch;
}
f.close();
goto label;
case 4:clrscr();
int q;
char confirm='n';
flag='n';
f.open("data.txt",ios::in);
f1.open("temp.txt",ios::out);
cout<<"nENTER STUDENT ID WHOSE RECORD IS TO BE
DELETED";
cin>>q;
f.seekg(0);
i=0;
while(!f.eof())
{
f.read((char*)&s1[i],sizeof(s1[i]));
if(s1[i].rsid()==q)
{
s1[i].display();
flag='y';
cout<<"nWANT TO DELETE YHIS?(y/n)n";
cin>>confirm;
if(confirm=='n')
f1.write((char*)&s1[i],sizeof(s1[i]));
}
else
f1.write((char*)&s1[i],sizeof(s1[i]));
i++;
}
if(flag=='n')
{
cout<<"nRECORD NOT FOUNDn";
}
f.close();
f1.close();
remove("data.txt");
rename("temp.txt","data.txt");
cout<<"nRECORD HAS BEEN DELETEDn";
cout<<"nPRESS ENTER TO CONTINUE";
getch();
goto label;
case 5:clrscr();
f.open("data.txt",ios::in);
f.seekg(0);
flag1='n';
cout<<"nENTER STUDENT ID TO SEARCH:n";
cin>>w;
i=0;
while(!f.eof())
{
f.read((char*)&s1[i],sizeof(s1[i]));
if(s1[i].rsid()==w)
{
s2.display();
flag1='y';
break;
}
i++;
}
if(flag1=='n')
{
cout<<"nDATA NOT FOUNDn";
}
f.close();
cout<<"nPRESS ENTER TO CONTINUE";
getch();
goto label;
case 6:cout<<"YOU HAVE SELECTED TO TERMINATE THE
PROGRAMnPROGRAM TERMAINATING............";
getch();
clrscr();
cout<<"nntttTHANK YOU FOR USING THIS SOFTWAREnt THIS
SOFTWARE IS CREATED BY THE STUDENTS OF K. V. GOLE
MARKET.nttttPLEASE DONT COPY ";
getch();
return 1;
default:cout<<"WRONG CHOICE!!!";
getch();
cout<<"PRESS ENTER TO CONTINUE";
goto label;
}
}
}
12th CBSE Computer Science Project
HELP FROM INTERNET
INFORMATION FROM BOOKS
HELP FROM TEACHERS
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project

More Related Content

DOCX
computer science project for class 12 on telephone billing
DOCX
Student DATABASE MANAGeMEnT SysTEm
PDF
Computer science class 12 project on Super Market Billing
PDF
Computer science Project for class 11th and 12th(library management system)
PDF
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
PDF
computer science project class 12th
DOCX
CBSE Class 12 Computer practical Python Programs and MYSQL
PDF
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
computer science project for class 12 on telephone billing
Student DATABASE MANAGeMEnT SysTEm
Computer science class 12 project on Super Market Billing
Computer science Project for class 11th and 12th(library management system)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
computer science project class 12th
CBSE Class 12 Computer practical Python Programs and MYSQL
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...

What's hot (20)

DOCX
Computer science project work
PDF
Computer Science Investigatory Project Class 12
DOCX
computer science with python project for class 12 cbse
PDF
Computer Project for class 12 CBSE on school management
PDF
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
DOCX
class 12th computer science project Employee Management System In Python
DOCX
IP Final project 12th
PDF
Computer project final for class 12 Students
PDF
Computer science project.pdf
PDF
Informatics Practices/ Information Practices Project (IP Project Class 12)
PDF
Library Management Python, MySQL
PDF
Computer science project on Online Banking System class 12
ODT
Library Management Project (computer science) class 12
DOCX
computer science project on movie booking system
DOCX
Computer Science Practical File class XII
DOCX
Report Card making BY Mitul Patel
PPTX
Computer Science Investigatory Project
PPTX
Employee Management System
PDF
IP Project for Class 12th CBSE
PDF
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
Computer science project work
Computer Science Investigatory Project Class 12
computer science with python project for class 12 cbse
Computer Project for class 12 CBSE on school management
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
class 12th computer science project Employee Management System In Python
IP Final project 12th
Computer project final for class 12 Students
Computer science project.pdf
Informatics Practices/ Information Practices Project (IP Project Class 12)
Library Management Python, MySQL
Computer science project on Online Banking System class 12
Library Management Project (computer science) class 12
computer science project on movie booking system
Computer Science Practical File class XII
Report Card making BY Mitul Patel
Computer Science Investigatory Project
Employee Management System
IP Project for Class 12th CBSE
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
Ad

Viewers also liked (14)

PPTX
Student Management System Project Abstract
DOCX
Employee Management System Project Propsal
DOC
Computer project C++ CLASS 12TH (CD MANAGEMENT SYSTEM )
DOCX
srs for railway reservation system
PDF
C++ coding for Banking System program
PPTX
Presentation on Railway Reservation System
DOCX
C++ project on police station software
PDF
School Management (c++)
TXT
c++ project on restaurant billing
PDF
practical file for class 12
DOC
Project report
DOCX
Hotel Management system in C++
DOCX
12th CBSE Practical File
PDF
Transformer(Class 12 Investigatory Project)
Student Management System Project Abstract
Employee Management System Project Propsal
Computer project C++ CLASS 12TH (CD MANAGEMENT SYSTEM )
srs for railway reservation system
C++ coding for Banking System program
Presentation on Railway Reservation System
C++ project on police station software
School Management (c++)
c++ project on restaurant billing
practical file for class 12
Project report
Hotel Management system in C++
12th CBSE Practical File
Transformer(Class 12 Investigatory Project)
Ad

Similar to 12th CBSE Computer Science Project (20)

PPTX
Oop c++class(final).ppt
DOCX
CSc investigatory project
DOC
Student record
PPTX
UNIT - 1- Ood ddnwkjfnewcsdkjnjkfnskfn.pptx
DOCX
A project report on libray mgt system
PPTX
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
PDF
aprojectreportonlibraymgtsystem2-141114055422-conversion-gate02 (1).pdf
PPTX
Computerscience 12th
PDF
C_and_C++_notes.pdf
PDF
Programming in C 2nd Edition Safari download pdf
DOCX
Criminal Record System
DOCX
DOCX
computer science project
PPTX
C++ language
PDF
Programming in c++
DOC
Class XII Computer Science Study Material
PDF
Programming in C 2nd Edition Safari download pdf
PDF
Download full ebook of Programming in C 2nd Edition Safari instant download pdf
PPTX
Managing,working with files
PPTX
Managing console i/o operation,working with files
Oop c++class(final).ppt
CSc investigatory project
Student record
UNIT - 1- Ood ddnwkjfnewcsdkjnjkfnskfn.pptx
A project report on libray mgt system
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
aprojectreportonlibraymgtsystem2-141114055422-conversion-gate02 (1).pdf
Computerscience 12th
C_and_C++_notes.pdf
Programming in C 2nd Edition Safari download pdf
Criminal Record System
computer science project
C++ language
Programming in c++
Class XII Computer Science Study Material
Programming in C 2nd Edition Safari download pdf
Download full ebook of Programming in C 2nd Edition Safari instant download pdf
Managing,working with files
Managing console i/o operation,working with files

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Complications of Minimal Access Surgery at WLH
PDF
Computing-Curriculum for Schools in Ghana
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
master seminar digital applications in india
PDF
Pre independence Education in Inndia.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
RMMM.pdf make it easy to upload and study
PPTX
Lesson notes of climatology university.
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Complications of Minimal Access Surgery at WLH
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
Final Presentation General Medicine 03-08-2024.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
master seminar digital applications in india
Pre independence Education in Inndia.pdf
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Insiders guide to clinical Medicine.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Supply Chain Operations Speaking Notes -ICLT Program
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
RMMM.pdf make it easy to upload and study
Lesson notes of climatology university.

12th CBSE Computer Science Project

  • 2. 1. Bona fide Certificate 2. Declaration 3. Acknowledgement 4. Introduction to c++ 5. Introduction to Project 6. Codings 7. Outputs 8. Bibliography
  • 3. This is to certify that the project entitled “STUDENT MANAGEMENT” is a record of bonafide work carried out by “Ashwin Francis 12th A,Nikunj 12th A,Shubham Negi 12th A”.In partial fulfilment of the requirements in COMPUTER SCIENCE prescribed by CBSE for CBSE BOARD 2014-2015 in the school Kendriya Vidyalaya Gole Market,New Delhi 110001. DATE PRINCIPAL INTERNAL EXTERNAL EXAMINER EXAMINER
  • 4. We hereby declare that the project work entitled “STUDENT MANAGEMENT“. Submitted to KENDRIYA VIDYALAYA GOLE MARKET, NEW DELHI for the Subject of “COMPUTER SCIENCE“. Under the guidance of Mrs.Neera Singhal, PGT(Comp. Sc.), Is a record of original work done by us.We further Declare that this project record or any part of this has not been Submitted elsewhere for any other class. DATE MEMBERS PLACE
  • 5. We wish to express our sincere thanks to Mr.DHEER SINGH Principal,Kendriya Vidyalaya Gole Market, New Delhi for guiding us to cause the successful outcome of this project work. We wish to express our deep & profound sense of gratitude to our guide/teacher Mrs.Neera Singhal, PGT(Comp. Sc.), For her expert help &valuable guidance, comments and suggestions. We also place on record, our sincere Gratitude to one and all who ,Directly or Indirectly ,Have Lent their helping hand in this venture.
  • 6. :- It is designed with a bias toward system programming (e.g., for use in embedded systems or operating system kernels), with performance, efficiency and flexibility of use as its design requirements. C++ has also been found useful in many other contexts, including desktop applications, servers (e.g. e-commerce, web search or SQL servers), performance-critical applications (e.g. telephone switches or space probes), and entertainment software.[3] C++ is a compiled language, with implementations of it available on many platforms and provided by various organizations, including the FSF, LLVM, Microsoft and Intel. :- C++ is standardized by the International Organization for Standardization (ISO), with the latest (and current) standard version ratified and published by ISO in September 2011 as ISO/IEC 14882:2011 (informally known as C++11).[4] The C++ programming language was initially standardised in 1998 as ISO/IEC 14882:1998, which was then amended by the C++03, ISO/IEC 14882:2003, standard. The current C++11 standard supersedes these, with new features and an enlarged standard library. Before the initial standardization in 1998, C++ was developed by Bjarne Stroustrup at Bell Labs, starting in 1979, who wanted an efficient flexible language (like the C language), which also provided high-level features for program organization. Function:- A function is a group of statements that together perform a task. Every C++ program has at least one function, which is main(), and all the most trivial programs can define additional functions. A function declaration tells the compiler about a function's name, return type, and parameters. A functiondefinition provides the actual body of the function. The C++ standard library provides numerous built-in functions that your program can call. For example, function strcat() to concatenate two strings, function memcpy() to copy one memory location to another location and many more functions.
  • 7. Class:- A class is a user defined type or data structure declared with keyword class that has data and functions (also called methods) as its members whose access is governed by the three access specifiers private, protected or public (by default access to members of a class is private). A class (declared with keyword class) in C++ differs from a structure (declared with keyword struct) as by default, members are private in a class while they are public in a structure. The private members are not accessible outside the class; they can be accessed only through methods of the class. Data FILE HANDLING:- The fstream library predefines a set of operations for handling file related input and output. It defines certain classes that help one perform file input and output. For ex, ifstream class ties a file to the program for input ; ofstream class ties a file to the program for output ; and fstream class ties a file to the program for both input and output.
  • 8. Every School needs to maintain Data bases of the students .The data base on the students is required for general purpose like collection fees Using this Software, under the Office module, the database on the students can be created,modified. The same can be used to verify whether any student is due for payment of term fees etc. It is designed to introduce a conducive and structured information exchange environment for integrating students. It enable educational institutions to supervise student-related activities. They are designed with diverse application potentials ranging from simple management of students’ records at school to management of all student-related functions as well as administrative functions of a university or a chain of educational establishments.This software is useful to maintain updated and error free status of all thestudents. The Motive of this software is to dilute the work of office staffs, and toreduce the use of paper.
  • 10. cin>>sid; cout<<"ENTER STUDENT NAME:n"; gets(name); cout<<"ENTER STUDENT CLASS:n"; cin>>std; cout<<"ENTER STUDENT ADDRESS:n"; gets(ad); cout<<"ENTER STUDENT PHONE NO.:n"; cin>>ph; cout<<"ENTER STUDENT FEES:n"; cin>>fees; } void display() { cout<<"n"<<sid<<"t"; cout<<name<<"t"; cout<<"t"<<std<<"t";
  • 11. cout<<ad; cout<<"t"<<ph<<"t"; cout<<"t"<<fees; } long rsid() { return sid; } int password(char ch[4]) { int n=0; if(strcmp(ch,"kvgm")==0) n=7; return n; }
  • 12. char retname() { return name[50]; } char retadd() { return ad[100]; } }; int main() { int i,m,c,w; char key[10],flag,flag1; stud s1[100],s2; fstream f,f1; clrscr(); cout<<"tttSTUDENT MANAGEMENT PROGRAMnnnttt CREATED BY nntttASHWIN FRANCISntttSHUBHAM NEGIntttNIKUNJn"; cout<<"nENTER PASSWORD PLEASE:n";
  • 13. gets(key); m=s2.password(key); if(m==0) { cout<<"nINVALID KEY PROGRAM TERMINATED"; getch(); return 1; } else { label: clrscr(); cout<<"tttSTUDENT MANAGEMENT PROGRAMn"; cout<<"nSELECTION MENUn1.CREATE NEW DATABASEn2.DISPLAY DATABASEn3.ADD TO DATABASEn4.DELETE FROM DATABASEn5.SEARCHn6.EXITn"; cin>>c; switch(c) {
  • 14. case 1:clrscr(); f.open("data.txt",ios::out); cout<<"n-FILE HAS BEEN CREATED YOU CAN START ENTERING DATA NOW-n"; char ch; ch='y'; i=0; while(ch=='y') { s1[i].enter(); f.write((char*)&s1[i],sizeof(s1[i])); i++; cout<<"nWANT TO ADD MORE DATA?nENTER(y/n):n"; cin>>ch; } f.close(); goto label; case 2:clrscr(); f.open("data.txt",ios::in);
  • 15. cout<<"n-FILE HAS OPENED YOU CAN VIEW DATA NOW n"; f.seekg(0); i=0; cout<<"nIDtNAMEttCLASStADDRESSttPHONEttFEES"; while(!f.eof()) { f.read((char*)&s1[i],sizeof(s1[i])); s1[i].display(); i++; } f.close(); cout<<"nPRESS ENTER TO CONTINUE"; getch(); goto label; case 3:clrscr(); f.open("data.txt",ios::app);
  • 16. cout<<"n-FILE HAS BEEN OPENED YOU CAN START ENTERING DATA NOW-n"; ch='y'; i=0; while(ch=='y') { s1[i].enter(); f.write((char*)&s1[i],sizeof(s1[i])); i++; cout<<"nRECORD ADDED TO FILE.nnWANT TO ADD MORE DATA?ENTER(y/n):n"; cin>>ch; } f.close(); goto label; case 4:clrscr(); int q; char confirm='n'; flag='n'; f.open("data.txt",ios::in);
  • 17. f1.open("temp.txt",ios::out); cout<<"nENTER STUDENT ID WHOSE RECORD IS TO BE DELETED"; cin>>q; f.seekg(0); i=0; while(!f.eof()) { f.read((char*)&s1[i],sizeof(s1[i])); if(s1[i].rsid()==q) { s1[i].display(); flag='y'; cout<<"nWANT TO DELETE YHIS?(y/n)n"; cin>>confirm; if(confirm=='n') f1.write((char*)&s1[i],sizeof(s1[i])); } else
  • 18. f1.write((char*)&s1[i],sizeof(s1[i])); i++; } if(flag=='n') { cout<<"nRECORD NOT FOUNDn"; } f.close(); f1.close(); remove("data.txt"); rename("temp.txt","data.txt"); cout<<"nRECORD HAS BEEN DELETEDn"; cout<<"nPRESS ENTER TO CONTINUE"; getch(); goto label; case 5:clrscr(); f.open("data.txt",ios::in); f.seekg(0);
  • 19. flag1='n'; cout<<"nENTER STUDENT ID TO SEARCH:n"; cin>>w; i=0; while(!f.eof()) { f.read((char*)&s1[i],sizeof(s1[i])); if(s1[i].rsid()==w) { s2.display(); flag1='y'; break; } i++; } if(flag1=='n') { cout<<"nDATA NOT FOUNDn"; } f.close();
  • 20. cout<<"nPRESS ENTER TO CONTINUE"; getch(); goto label; case 6:cout<<"YOU HAVE SELECTED TO TERMINATE THE PROGRAMnPROGRAM TERMAINATING............"; getch(); clrscr(); cout<<"nntttTHANK YOU FOR USING THIS SOFTWAREnt THIS SOFTWARE IS CREATED BY THE STUDENTS OF K. V. GOLE MARKET.nttttPLEASE DONT COPY "; getch(); return 1; default:cout<<"WRONG CHOICE!!!"; getch(); cout<<"PRESS ENTER TO CONTINUE"; goto label; } } }
  • 22. HELP FROM INTERNET INFORMATION FROM BOOKS HELP FROM TEACHERS