Skip to content

Instantly share code, notes, and snippets.

View Vinnik67's full-sized avatar
🏠
Working from home

Vinnik67

🏠
Working from home
View GitHub Profile
#include <iostream>
#include <vector>
using namespace std;
// Forward declaration
class InsuranceAgent;
// Abstract element (place to visit)
class Building {
public:
#include <iostream>
using namespace std;
class Receiver {
bool BankTransfer;
bool MoneyTransfer;
bool PayPalTransfer;
bool CryptoTransfer; // new field
public:
#include <iostream>
#include <memory>
#include <string>
// Strategy interface
class RouteStrategy {
public:
virtual ~RouteStrategy() = default;
virtual std::string buildRoute(const std::string& pointA, const std::string& pointB) const = 0;
};
#include <windows.h>
#include <winhttp.h>
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#pragma comment(lib, "winhttp.lib")
// Zodiac signs list
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <thread>
#include <chrono>
void printWithDelay(const std::string& message, int ms = 500) {
std::cout << message << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
}
#include <iostream>
#include <conio.h> // для _getch()
#include <curl/curl.h>
#include <fstream>
#include <filesystem>
#include <string>
#include <ctime>
// Функція для запису даних у файл
size_t write_data(void* ptr, size_t size, size_t nmemb, void* stream) {
#include <iostream>
#include <memory>
#include <string>
// ===== Реализация (Implementor) =====
class Device {
public:
virtual ~Device() = default;
virtual std::string getInfo() const = 0;
};
#define WIN32_LEAN_AND_MEAN
#include <ws2tcpip.h>
#include <windows.h>
#include <iostream>
#include <string>
#include <queue>
#include <map>
#include <chrono>
#include <thread>
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#pragma execution_character_set("utf-8")
#include <ws2tcpip.h>
#include <iostream>
#include <string>
#include <windows.h>
#include <chrono>
#include <vector>
using namespace std;
#include <iostream>
#include <string>
using namespace std;
// ---------------- Product ----------------
class Car
{
private:
string name;
string body;