Advertisement
fabgonber

Untitled

Oct 5th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. class Fecha {
  2. public:
  3.     Fecha (){
  4.         anho =0;
  5.         mes = 0;
  6.         dia = 0;
  7.     }
  8.     Fecha (int a, int m, int d){
  9.         anho =a;
  10.         mes = m;
  11.         dia = d;
  12.     }
  13.     void ver();
  14. private:
  15.     int anho;
  16.     int mes;
  17.     int dia;
  18. };
  19.  
  20. void Fecha::ver(){
  21.     cout <<dia<<"/"<<mes<<"/"<<anho<<endl;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement