Skip to content

Instantly share code, notes, and snippets.

@MistyBlunch
Created July 24, 2020 02:58
Show Gist options
  • Select an option

  • Save MistyBlunch/174550b27bb8df39e57baa2bc01e6314 to your computer and use it in GitHub Desktop.

Select an option

Save MistyBlunch/174550b27bb8df39e57baa2bc01e6314 to your computer and use it in GitHub Desktop.
# Ejemplooooo de aquí https://stackoverflow.com/questions/52097039/how-do-i-change-stdcout
class print{
public:
int a;
void operator<<(print &obj){
cout<<obj.a<<endl;
}
};
print obj;
obj.a =1;
obj<<obj;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment