1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
// HAMANAN HOOLASIE 2015100029
#include <iostream>
#include "manager.h"
using namespace std;
int main()
{
Manager assignment;
int option = 0;
string cC, cN, dC, dD;
do
{
cout << " \n 1. Add New Assignment ";
cout << " \n 2. Display Assignments ";
cout << " \n 0. Exit";
cout << " \n Please Enter Option 1,2,0 : \n ";
cin >> option;
cin.get();
switch(option)
{
case 1:
cout << " Please Enter Course Code ";
getline(cin, cC);
cout << " Please enter Course Name ";
getline(cin, cN);
cout << "Please enter Description ";
getline(cin, dC);
cout << "Please enter due date ";
getline(cin, dD);
assignment.addNewAssignment(cC, cN, dC, dD);
break;
case 2:
assignment.displayAssignment();
break;
case 3:
assignment.removeAssignment(cC, cN, dC, dD);
case 0:
break;
}//end switch
}while(option != 0);
return 0;
}
|