Last active
December 25, 2015 13:58
-
-
Save Fhernd/6987138 to your computer and use it in GitHub Desktop.
Demostración del uso de constante como subexpresiones en una �sentencia de asignación (inicialización) de una constante.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Calendario3 | |
{ | |
const int MESES = 12; | |
const int SEMANAS = 52; | |
const int DIAS = 365; | |
const double DIAS_POR_SEMANA = (double) DIAS / (double) SEMANAS; | |
const double DIAS_POR_MES = (double) DIAS / (double) MESES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment