#include<iostream>
#include"wstudent.h"

using namespace std;

void bloo(Student s)
{
   cout << "Printing from bloo " << endl;
   s.print();
}

void pbloo(Student* ps)
{
   cout << "Printing from pbloo " << endl;
   ps->print();
}

void rbloo(Student& s)
{
   cout << "Printing from rbloo " << endl;
   s.print();
}

int main()
{
   WorkingStudent ws("TheWSName", 1000);

cout << "*****************************************" << endl;

   Student s("FirstLast");

cout << "*****************************************" << endl;

////////////////////////////////////////////////////////////

   s.set_no(10);

   ws.set_no(100);
   ws.set_months(12);

////////////////////////////////////////////////////////////

    Student* ps;
    WorkingStudent* wps;

cout << "*****************************************" << endl;

/*
cout << "******** PRINTING! *********" << endl;
    wps = &ws;
    wps->print();
    
cout << "*****************************************" << endl;
    ps = &s;
    ps->print();

cout << "*****************************************" << endl;
    ps = &ws;
    ps->print();

*/
////////////////////////////////////////////////////////////
/*
cout << "\n********Functions to be called! *********" << endl;
cout << "\n*****************************************" << endl;
   bloo(s);
   bloo(ws);
cout << "\n*****************************************" << endl;
   pbloo(&s);
   pbloo(&ws);
cout << "\n*****************************************" << endl;
   rbloo(s);
   rbloo(ws);
*/

cout << "*****************************************" << endl;
   return 0;
}
