Skip to content

Instantly share code, notes, and snippets.

View kosbar's full-sized avatar
🎯
Here's Tom with the weather...

Konstantin Bartashevich kosbar

🎯
Here's Tom with the weather...
View GitHub Profile
#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,
#include <iostream>
#include <ostream>
#include <cmath>
#include <set>
#include <algorithm>
#include <random>
#include <iostream>
using namespace std;
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) {