Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active December 25, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6987138 to your computer and use it in GitHub Desktop.
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.
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