Time.h - Time.h Defines a class that stores essential...

This preview shows page 1 - 3 out of 3 pages.

// Time.h// Defines a class that stores essential information about time including hour and minute//---------------------------------------------------------------------------------#ifndef TIME_H#define TIME_H//-------------------------------------------------------------------------------#include <iostream>using namespace std;//-------------------------------------------------------------------------------/*** @class Time* @brief Manages all functions and information about time.* * Hour and minute are stored as integer value.\n* * @author Vu Thanh Long* @version 01 * @date 28/02/2019 Vu Thanh Long, Started** @bug My program has no bugs. Well, maybe it has...*/class Time{public:/** * @brief Default constructor* * This function will set the time to default: 00:00* * @return none*/Time();/** * @brief second constructor* * This function will set the time according input parameters** @param h, m : value of hour and minute in integer numbers* @return none*/Time(int h, int m);/** * @brief public function to set the value of hour. * * @param h - value of hour.* @return void*/void setHour(int h);
/** * @brief public function to set the value of minute. * * @param m - value of minute.* @return void*/void setMinute(int m);/** * @brief public function to set the value of time.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture