Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Last active August 29, 2015 14:08
Show Gist options
  • Save VitaminaCPP/9e87a5bd106a2d20400f to your computer and use it in GitHub Desktop.
Save VitaminaCPP/9e87a5bd106a2d20400f to your computer and use it in GitHub Desktop.
struct punto
{
int x, y, z;
};
// Los agregados pueden componerse de otros agregados
struct objeto
{
punto posicion;
float masa;
};
// Iniciamos objeto con llaves
objeto llaves_anidaddas = { {1, 2, 3}, 1.234f };
objeto un_par_de_llaves = { 1, 2, 3, 1.234f };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment