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 <ostream> | |
| #include <cmath> | |
| #include <set> | |
| #include <algorithm> | |
| #include <random> | |
| #include <iostream> | |
| enum suit {S = 2, H = 3, D = 5, C = 7 }; | |
| enum value { _2 = 2, _3 = 3, _4 = 5, _5 = 7, _6 = 11, _7 = 13, |
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 <ostream> | |
| #include <cmath> | |
| #include <set> | |
| #include <algorithm> | |
| #include <random> | |
| #include <iostream> | |
| using namespace std; |
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
| struct String { | |
| String(const char *str = "") { | |
| this->str = new char[strlen(str)+1]; | |
| strcpy(this->str, str); | |
| this->str[strlen(str) + 1] = 0; | |
| this->size = strlen(str)+1; | |
| }; | |
| String(const String& other) { |