#include <iostream>
using namespace std;

#include "student_constr.h"

int main()
{
   Student s("First Last");
   cout << "This is the first output of the main function " << endl;

   s.set_no(100);
   s.set_year_of_studies(1);
   s.set_name("NFirst Last");
   s.set_date(20,11,2005);

   int year, no;

   year = s.get_year_of_studies();
   no = s.get_no();
   cout << "\nYear of studies is " << year
        << " for student with no " << no
        << " and name " << s.get_name() << endl;

   int rday, rmonth, ryear;
   s.get_date(rday,rmonth,ryear);
   cout << "and the registration date is:" << rday << "  "
        << rmonth << "  " << ryear << endl;

//////////////////////////////////////////////////////////
   Student s1("The NEW STUDENT");
   s1.set_date(2,11,2010);
   s1.get_date(rday,rmonth,ryear);
   cout << "and the new student registration date is:"
        << rday << "  "  << rmonth << "  " << ryear << endl;

//////////////////////////////////////////////////////////
   Student scopied(s1);
   scopied.get_date(rday,rmonth,ryear);
   cout << "and the scopied registration date is:"
        << rday << "  " << rmonth << "  " << ryear << endl;

   scopied.set_date(21,12,2115);
   scopied.get_date(rday,rmonth,ryear);
   cout << "and the scopied registration date is now:"
        << rday << "  " << rmonth << "  " << ryear << endl;

//////////////////////////////////////////////////////////
   scopied = s;

   scopied.get_date(rday,rmonth,ryear);
   cout << "and the scopied registration date is:"
        << rday << "  " << rmonth << "  " << ryear << endl;

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

   cout << "Just exiting the main function ...." << endl;

   return 0;
}
