Skip to content

Instantly share code, notes, and snippets.

@samuelnub
Created June 11, 2016 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelnub/67328d8efeadcb16e252d03b19571903 to your computer and use it in GitHub Desktop.
Save samuelnub/67328d8efeadcb16e252d03b19571903 to your computer and use it in GitHub Desktop.
only the best in object oriented programming, magnifiqué
#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