This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Declaración de la clase Tiempo. | |
// Las funciones miembro se definen en tiempo2.cpp | |
// previene la inclusión múltiple del archivo de encabezado | |
#ifndef TIEMPO2_H | |
#define TIEMPO2_H | |
// Definición del tipo de dato abstracto Tiempo | |
class Tiempo { | |
public: | |
Tiempo( int = 0, int = 0, int = 0); // constructor predeterminado | |
void estableceHora( int, int, int ); // establece hora, minuto, segundo | |
void imprimeUniversal(); // imprime la hora en formato universal | |
void imprimeEstandar(); // imprime la hora en formato estándar | |
private: | |
int hora; // 0 - 23 (formato de reloj de 24 horas) | |
int minuto; // 0 - 59 | |
int segundo; // 0 - 59 | |
}; // fin de la clase Tiempo | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment