Created
June 11, 2016 08:49
-
-
Save samuelnub/67328d8efeadcb16e252d03b19571903 to your computer and use it in GitHub Desktop.
only the best in object oriented programming, magnifiqué
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
#include <iostream> | |
class Recursive | |
{ | |
private: | |
unsigned long long count; | |
public: | |
Recursive(unsigned long long x) | |
{ | |
this->count = x; | |
std::cout << "ayy "; | |
} | |
~Recursive() | |
{ | |
std::cout << "lmao"; | |
for(unsigned long long i = 0; i < count; i++) | |
{ | |
std::cout << "o"; | |
} | |
std::cout << "\n"; | |
if(count < 18446744073709551615) | |
{ | |
Recursive lol(count+1); | |
} | |
} | |
}; | |
int main() | |
{ | |
Recursive lol(0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment