Example #1
0
int main(void) {
	Student s;
	while(true) {
		cout<<"Do You Want to Add Any Student Press 1 For Yes and 0 for No?:"; 
		int temp;
		cin>>temp;
		if(!temp) {
			break;
		}
		else {
			int r;
			string n;
			string dept;
			string dt;
			cout<<"Enter the Roll Number, Name, Department and Date in Order ";
			cin>>r>>n>>dept>>dt;
			s.add_student(r,n,dept,dt);
		}
	}
	while(true)  {
		cout<<"Do You want to Update Admission Date of any Student ? Yes 1 No 0 : ";
		int temp;
		cin>>temp;
		if(!temp) {
			break;
		}
		else {
			cout<<"Enter the Roll Number Followes By the New Admission date ";
			int r;
			string dt;
			cin>>r>>dt;
			s.update_admission_date(r,dt);
		}
	}
	s.receive_marks();
	s.prepare_mark_sheet();
	cout<<"Total Number of Students Admitted : "<<Student::admitted_students();
}