Student Management System
This program aims to handle & manage the data of students as per our
needs.
Presented by:
Us
Following are our main steps:
1) Add new student
2) Display students (all)
3) Search a specific student
4) Update a students record
5) Delete an existing student
6) Exit program
#include<iostream>
#include<vector>
In C++, vectors are used to store elements of same data types. However,
unlike arrays, the size of a vector can grow dynamically.
We can change the size of a vector during program execution as per our
requirements.
class Student{
private:
int rollno, age;
string name;
Public: Student(int stdId, string stdName,int stdAge){
rollno = stdId;
name = stdName;
age = stdAge;
}
void setRollno(int stdId)
{
rollno = stdId;
}
void displayStudent()
{
cout<<"Roll No : "<<rollno<<endl;
cout<<"Name :"<<name<<endl;
cout<<"Age : "<<age<<endl;
}
//Create function to update Student record
void updateStudent(vector<Student>& students)
switch(choice){
case 1:{
int rno;
cout<<"ttEnter New Rollno :";
cin>>rno;
students[i].setRollno(rno);
break;
}
switch(choice){
case 1:{
int rno;
cout<<"ttEnter New Rollno :";
cin>>rno;
students[i].setRollno(rno);
break;
}
--------------------------------
*** Student Management System ***
--------------------------------
1. Add New Student
2. Display All Student
3. Search Student
4. Update Student
5. Delete Student
6. Exit
Enter Your Choice :
THANK YOU FOR BEING PATIENT AT THIS CRUELTY

Student management system program in c language