Created
August 18, 2023 16:16
-
-
Save jaredswarts55/99f0181253e2917ace170a650a9f6c70 to your computer and use it in GitHub Desktop.
An Unobfuscated form of the emoji code
This file contains hidden or 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> | |
| #include <string> | |
| #include <vector> | |
| #include <memory> | |
| enum πΏ {π΅, π, π, π}; | |
| int getRandom() { return std::rand(); } | |
| bool getFalse() { return false; } | |
| struct FoodBase { virtual void Execute() = 0; }; | |
| struct Peach : FoodBase { virtual void Execute() { std::cout << "π" << std::endl; }; }; | |
| struct Watermelon : FoodBase { virtual void Execute() { std::cout << "π" << std::endl; }; }; | |
| struct Cherry : FoodBase { virtual void Execute() { std::cout << "π" << std::endl; }; }; | |
| struct Strawberry : FoodBase { virtual void Execute() { std::cout << "π" << std::endl; }; }; | |
| struct Pineapple : FoodBase { virtual void Execute() { std::cout << "π" << std::endl; }; }; | |
| struct Tomato : FoodBase { virtual void Execute() { std::cout << "π " << std::endl; }; }; | |
| int main() | |
| { | |
| if (getFalse() == false) | |
| std::cout << "π©" << std::endl; | |
| std::vector<std::shared_ptr<FoodBase>> foods = {std::make_shared<Peach>(), std::make_shared<Watermelon>(), std::make_shared<Cherry>(), std::make_shared<Strawberry>(), std::make_shared<Pineapple>(), std::make_shared<Tomato>()}; | |
| for (auto food : foods) | |
| food->Execute(); | |
| return getRandom(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment