0% found this document useful (0 votes)
207 views4 pages

Student Management System Project

Uploaded by

deepkannav369
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
207 views4 pages

Student Management System Project

Uploaded by

deepkannav369
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Student Management System

1. Introduction to C++

C++ is a widely used programming language that supports object-oriented, procedural, and generic

programming features.

It is known for its performance and is often used in system software, game development, and

real-time simulation.

C++ allows efficient memory management and gives the programmer control over system

resources, making it suitable for building applications like a Student Management System.

2. Hardware and Software Requirements

Hardware:

- Processor: Minimum Intel Core i3 or equivalent

- RAM: 4 GB or more

- Storage: 1 GB free space

Software:

- IDE: Code::Blocks, Dev-C++, or Visual Studio

- Compiler: GCC or any C++ compiler

- OS: Windows, Linux, or MacOS

3. Design

The student management system uses a simple design with a class "Student" that holds student

data,

such as roll number, name, and marks. The system uses various functions to add, display, search,

and delete student records.


Basic structure:

- Class: Student

- Data Members: rollNumber, name, marks

- Functions: addStudent(), deleteStudent(), searchStudent(), displayAllStudents()

4. Coding

Here is the complete C++ code for the Student Management System, which includes the ability to

add, display, search, and delete student records.


#include <iostream>
#include <vector>
#include <string>
using namespace std;

class Student {
private:
int rollNumber;
string name;
float marks;

public:
Student(int rollNumber, string name, float marks) {
this->rollNumber = rollNumber;
this->name = name;
this->marks = marks;
}

int getRollNumber() const {


return rollNumber;
}

string getName() const {


return name;
}

float getMarks() const {


return marks;
}

void displayStudent() const {


cout << "Roll Number: " << rollNumber << endl;
cout << "Name: " << name << endl;
cout << "Marks: " << marks << endl;
}
};
// Function to Add a New Student
void addStudent(vector<Student>& students) {
int rollNumber;
string name;
float marks;

cout << "Enter Roll Number: ";


cin >> rollNumber;
cout << "Enter Name: ";
cin.ignore();
getline(cin, name);
cout << "Enter Marks: ";
cin >> marks;

Student newStudent(rollNumber, name, marks);


students.push_back(newStudent);
cout << "Student added successfully!" << endl;
}

5. Output

Sample Output:

1. Add Student

Enter Roll Number: 1

Enter Name: John Doe

Enter Marks: 85.5

Student added successfully!

2. Display All Students

Roll Number: 1

Name: John Doe

Marks: 85.5
--------------------

6. Bibliography

- C++ Programming Language by Bjarne Stroustrup

- GeeksforGeeks C++ Tutorials: https://www.geeksforgeeks.org/c-plus-plus/

- Cplusplus.com: https://www.cplusplus.com/doc/tutorial/

You might also like