Skip to content

Instantly share code, notes, and snippets.

#define WIN32_LEAN_AND_MEAN
#include <iostream>
#include <string>
#include <windows.h>
#include <ws2tcpip.h>
using namespace std;
#pragma comment(lib, "Ws2_32.lib")
#define WIN32_LEAN_AND_MEAN
#include <iostream>
#include <string>
#include <windows.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
#define DEFAULT_BUFLEN 512
#define DEFAULT_PORT "27015"
using namespace std;
#include <iostream>
#include <string>
#include <windows.h>
#pragma comment(lib, "urlmon.lib")
using namespace std;
int main() {
string city[10] = {"Kyiv","Lviv","Odesa","Kharkiv","Dnipro","Zaporizhzhia","Vinnytsia","Poltava","Chernihiv","Ivano-Frankivsk"};
#include <iostream>
#include <string>
#include <windows.h>
#pragma comment(lib, "urlmon.lib")
using namespace std;
int main() {
cout << " Enter name city: ";
#include <iostream>
#include <vector>
#include <list>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
int main()
@XoLinA
XoLinA / STL
Created December 24, 2025 11:18
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class FindMin
{
public:
int operator()(const vector <int> & v)
#include <iostream>
#include <fstream>
#include <map>
#include <string>
using namespace std;
int main()
{
ifstream inFile("input.txt");
#include <iostream>
#include <vector>
using namespace std;
int Sum(const vector<int>& a)
{
int sum = 0;
for (int i = 0; i < a.size(); i++)
{
int x = a[i];
#include <iostream>
using namespace std;
template <class T>
class my_unique_ptr
{
T* ptr;
public:
my_unique_ptr(T* ptr = nullptr) :ptr(ptr) {}
#include <iostream>
#include <fstream>
#include <Windows.h>
using namespace std;
int main()
{
const char* html = "C:/Users/Me/Desktop/file.html";
ifstream file(html);