he hecho esto pero el problema esq debo pasarle unos tests y no se cual es el problema:
void muestraFecha(const TFecha &f){
   int d,m,a;
   
   d = f.dia;
   m = f.mes;
   a = f.anyo;
   std::string dia,mes,anyo;
   std::stringstream ssdia,ssmes,ssanyo;
   ssdia << d;
   ssmes << m;
   ssanyo << a;
   dia = ssdia.str();
   mes = ssmes.str();
   anyo = ssanyo.str();
   std::cout << dia << "/" << mes << "/" << anyo << std::endl;
};
ESTOS SON LOS TETST:
TEST(ConstructorPorDefecto) {
   TFecha f;
   inicializaFecha(f);
   muestraFecha(f);
   CHECK_OUTPUT("1/1/1970");
}
TEST(InitYEscribe) {
   TFecha f;
   inicializaFecha(f, 12, 10, 1492);
   muestraFecha(f);
   CHECK_OUTPUT("12/10/1492");
   inicializaFecha(f, 21, 10, 1492);
   muestraFecha(f);
   CHECK_OUTPUT("21/10/1492");
}
}