Last active
August 29, 2015 14:08
-
-
Save VitaminaCPP/4d6d7b1d1d68f98ccb94 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 agregado | |
{ | |
agregado &operator =(const agregado &a); | |
void funcion(int x); | |
private: | |
static int valor = 1; | |
}; | |
class no_agregado | |
{ | |
int valor; | |
public: | |
no_agregado(int v) : valor(v) {} | |
}; | |
no_agregado array[] {no_agregado(1), no_agregado(2)}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment