More actions
Combined display of all available logs of Randomness wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 05:35, 15 September 2024 Derg talk contribs created page homo.cpp (Created page with " <syntaxhighlight lang="C++"> #include <iostream> #include <string> class Homo { private: public: std::string key; void operator= (std::string index) { std::cout << this->key << " is " << index << std::endl; } }; class Gay { private: public: Homo operator[] (std::string index) { Homo h; h.key = index; return h; } }; int main() { Gay gay; gay["your mom"] = "gay"; return 0; } </syntaxhig...")