• Viernes 29 de Marzo de 2024, 02:12

Autor Tema:  ALGUIEN ME PUEDE DECIR POR QUE NO ME COMPILA ESTE RELOJ  (Leído 963 veces)

yongelcun

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
ALGUIEN ME PUEDE DECIR POR QUE NO ME COMPILA ESTE RELOJ
« en: Miércoles 8 de Julio de 2009, 02:50 »
0
Código: C++
  1. #include <iostream>
  2. #include <windows.h>    
  3.  
  4. using namespace std;
  5.  
  6. class reloj
  7. {
  8.  
  9. int hora, minutos, segundos;
  10.  
  11. public:
  12.  
  13. reloj (int=0, int=0, int=0); // constructor
  14. void mostrarReloj (int, int, int);
  15. void mirarReloj ();
  16. };
  17.  
  18. reloj::reloj (int h, int m, int s) // constructor
  19. {
  20.     hora=h;
  21.     minutos=m;
  22.     segundos=s;
  23. }
  24. void reloj::mostrarReloj (int h, int m, int s) // constructor
  25.  
  26. {
  27.     hora=h;
  28.     minutos=m;
  29.     segundos=s;
  30. }
  31. void reloj::mirarReloj ()
  32. {
  33.  cout << "Hora:" << hora << "Minutos:" << minutos << "Segundos" << segundos;
  34.  
  35.  
  36. return;
  37. }
  38.  

Eternal Idol

  • Moderador
  • ******
  • Mensajes: 4696
  • Nacionalidad: ar
    • Ver Perfil
Re: ALGUIEN ME PUEDE DECIR POR QUE NO ME COMPILA ESTE RELOJ
« Respuesta #1 en: Miércoles 8 de Julio de 2009, 09:27 »
0
Sera que no tiene main  :lol:

Nacional y Popular En mi país la bandera de Eva es inmortal.


Queremos una Argentina socialmente justa, económicamente libre y  políticamente soberana.
¡Perón cumple, Evita dignifica!


La mano invisible del mercado me robo la billetera.