Last active
August 29, 2015 14:08
-
-
Save VitaminaCPP/9df4279bac35e0ebb445 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
// Antes de C++11 | |
struct objeto | |
{ | |
objeto() | |
: caracter('0'), entero(1), largo(2l) {} | |
objeto(char c) | |
: caracter(c), entero(1), largo(2l) {} | |
objeto(int i) | |
: caracter('0'), entero(i), largo(2l) {} | |
objeto(long l) | |
: caracter('0'), entero(1), largo(l) {} | |
char caracter; | |
int entero; | |
long largo; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment