College Management System In C++ With Source Code

The College Management System Project In C++ is developed in C Programming Language, The College System Project In C++ is based on the concept of managing the student’s record.

It is a simple college management system, therefore, it does not contain a login system and password admin. The user can manage students record by add new student, updating, removing, viewing and search for a student for details.

A College Management System Project In C++ Language makes easy for storing records with in a short period of time rather than maintaining students record by adding updating removing viewing in copies. User has to input Student ID no. ,name, registration number address, contact number and course number name and branch.

ABOUT PROJECTPROJECT DETAILS
Project Name : College Management System
Project Platform :C/C++
Programming Language Used:C++ Programming Language
Developer Name :itsourcecode.com
IDE Tool (Recommended):Dev-C++/Codeblocks
Project Type :Desktop Application
Database:Stores data in .DAT file
College Management System Project In C++ With Source Code Information

This College Management System Project also includes a downloadable College Management System Project In C++ Free Download, just find the downloadable source code below and click to start downloading.

To start creating a College Management System In C++, make sure that you have code blocks or any platform of C/C++ language installed in your computer.

What is college management system project?

A little PHP project called College Management System is used to store and keep track of all student information. The goal of this little project is to maintain a record of the students, courses, attendance, and money. We created this small project. C++ project college management system.

What are the benefits of college management system?

Colleges and other types of higher education institutions are able to manage their leads and inquiries, conduct online admissions, teach virtually, sell courses, track students’ progress, administer tests and quizzes, keep track of attendance, accept assignments online, manage learning materials, produce report cards, and create new content with the help of a college management system.

What is scope of college management system?

This research explores college administration functions. Focus on implementing a proper procedure. Our current software includes registration, student search, fees, attendance, exam records, and student performance.

Steps on how to create a College Management System Project In C++ With Source Code

College Management System Project In C++ With Source Code

  • Step 1: Create a new project.

    First open the code blocks IDE and click “create a new project“.
    create project

  • Step 2: Choose console application.

    Second click the “console application” and after that click “next“.
    college management system console application

  • Step 3: Choose C language.

    Third choose “C++ language” and click “next“.
    college management system c console

  • Step 4: Name Your Project.

    Fourth name the project you’ve created and click “next” after that click “finish“.
    college management system project title

  • Step 5: The actual code.

    You are free to copy the given source code below or download the downloadable source code given.

The Code Given Below Is For Display Module

void display()
		{
			system("CLS");
			cout<<"\t\tDisplay Records";
			cout<<"\n";
			cout<<"\n Name - "<<name;
			cout<<"\n Reg no. - "<<reg;
			cout<<"\n Branch - "<<branch;
			cout<<"\n";
			system("PAUSE");
			system("CLS");
		}
		bool operator == (student a)
		{
			if(reg==a.reg)
				return true;
			else
				return false;
		}
};
vector <student>v;
int search_reg(long int reg,int &i);
void get_file()
{
	student x;
	int i=0;
	fstream f;
	f.open("College.txt",ios::in);
	if(f)
	{
		f.read((char *) &x,sizeof(class student));
		while(!f.eof())
		{
			v.push_back(x);
			f.read((char *) &x,sizeof(class student));
		}
	}
	else
		;
	f.close();
}
void bubblesort()
{
	int i,j;
	student x;
	for(i=0;i<v.size();i++)
		for(j=0;j<v.size()-i-1;j++)
			if(v[j].reg>v[j+1].reg)
			{
				x=v[j];
				v[j]=v[j+1];
				v[j+1]=x;
			}	
}

In this module which is the display module of the system.

The Code Given Below Is For The Insert Module

void insert_new()
{
	char ch='y';
	int ta;
	while(ch=='y')
	{
		fflush(stdin);
		student x;
		x.input();
		if(search_reg(x.reg,ta)==0)
			v.push_back(x);
		else
			cout<<"\nTHE REGISTRATION NO. ALREADY EXIST!!!\nCANNOT ADD";
		cout<<"\n Press [Y] to enter more: ";
		cin>>ch;
		fflush(stdin);
	}
}

In this module which is the module for inserting the records.

The Code Given Below Is For The Write File Module

void write_file()
{
	bubblesort();
	fstream f;
	f.open("College.txt",ios::out);
	for(int i=0;i<v.size();i++)
	{
		student x=v[i];
		f.write((char *) &x,sizeof(class student));
	}
	f.close();
}
int search_reg(long int reg,int &i)
{
	int ta=0;
	for(i=0;i<v.size();i++)
		if(v[i].reg==reg)
		{
			ta=1;
			break;
		}
	return ta;
}
int search_name(char name[],vector<int> &vi)
{
	int i,ta=0;
	for(i=0;i<v.size();i++)
		if(strcmp(v[i].name,name)==0)
		{
			ta=1;
			vi.push_back(i);
		}
	return ta;
}
int search_branch(char branch[],vector<int> &vj)
{
	int i,ta=0;
	for(i=0;i<v.size();i++)
		if(strcmp(v[i].branch,branch)==0)
		{
			ta=1;
			vj.push_back(i);
		}
	return ta;
}

In this module which is the module for write file the records.

The Code Given Below Is For The Search Module

void search_and_show()
{
	int ch,i,ta=0;
	char name[80],branch[50];
	vector <int>vi; 
	vector <int>vj;
	long int reg;
	poi:
	cout<<"\n1.Press to search reg no."
	<<"\n2.Press to search name"
	<<"\n3.Press to search branch";
	cin>>ch;
	switch(ch)
	{
		case 1:
			cout<<"\nEnter reg no.: ";
			cin>>reg;
			if(search_reg(reg,i)==1)
				v[i].display();
			else
				cout<<"\nRecord NOT FOUND!!!";
			break;
		case 2:
			cout<<"\nEnter name: ";
			fflush(stdin);
			gets(name);
			if(search_name(name,vi)==1)
			{
				for(int j=0;j<vi.size();j++)
					v[vi[j]].display();
			}
			else
				cout<<"\nRecord NOT FOUND!!!";
			break;
		case 3:
			cout<<"\nEnter branch: ";
			fflush(stdin);
			gets(branch);
			if(search_branch(branch,vj)==1)
			{
				for(int j=0;j<vj.size();j++)
					v[vj[j]].display();
			}
			else
				cout<<"\nRecord NOT FOUND!!!";
			break;
		default:
			cout<<"\nWrong CHOICE!!!";
			goto poi;
	}
}

In this module which is the module for searching and display records.

Downloadable Source Code

Summary

The College Attendance Management System Project In C++ is centered on handling students’ records. It’s a simple college administration system, thus there’s no login or password. The user may add, update, remove, view, and search for student records.

A College Management System Project in C Language makes storing records easier by updating and deleting viewing in copies. Student ID, name, address, registration number, contact number, course number, and branch must be entered.

Related Articles

Inquiries

If you have any questions or suggestions about College Management System In C++ , please feel free to leave a comment below.

1 thought on “College Management System In C++ With Source Code”

Leave a Comment