
ayuda con class reloj
Publicado por eduardo jose (2 intervenciones) el 24/10/2014 00:35:34
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CReloj
{ private:
int horas, minutos, segundos;
int bateria; // cada tic-tac consume una unidad de energía
public:
CReloj(int h, int m, int s, int b);
void tic_tac( );
void avanza(int h, int m, int s);
void atrasa(int h, int m, int s);
bool esta_parado( );
void recarga_bateria(int b);
void hora_en_formato_12h( );
void hora_en_formato_ 24( );
};
Valora esta pregunta


0