Last active
August 29, 2015 14:08
-
-
Save VitaminaCPP/9e87a5bd106a2d20400f to your computer and use it in GitHub Desktop.
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
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