Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int LongitudTiempo(){
- if (FInicio.EsCorrecta()&& FFinal.EsCorrecta()){
- Fecha Nueva = FInicio;
- int Contador = 0;
- while(!Nueva.FechaEsIgual(FFinal)){
- Nueva.SiguienteDia();
- Contador = Contador + 1;
- }
- return Contador;
- }
- else{
- return -1;
- }
Add Comment
Please, Sign In to add comment