#include <iostream>
#include <conio.h>
#include <stdlib.h>

using namespace std;

int main()
{
    int choice;
    
    do {
    	
	    cout << "Application Menu" << endl;
	    cout << "[1] Add Student" << endl;
	    cout << "[2] Delete Student" << endl;
	    cout << "[3] Display Student" << endl;
	    cout << "[4] Exit" << endl;
	    cout << endl;
	    
	    cout << "Enter your choice: ";
	    cin >> choice;    	

		switch (choice) {
		  case 1:
		    cout << "Adding student" << endl;
		    addStudent();
		    break;
		    
		  case 2:
		    cout << "Deleting student" << endl;
		    deleteStudent("mat001");
		    break;
		    
		  case 3:
		    cout << "Displaying student" << endl;
		    break;
		    
		  case 4:
		    cout << "Exiting the application" << endl;
		    break;
		    
		  default:
		    cout << "Invalid choice" << endl;
		    break;
		}	

		cout << endl;
		cout << "Please press any key to continue";
		getche();
		system("CLS");

	} while (choice != 4);
	
    return 0;
}
