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
CC=gcc | |
CFLAGS=-c -Wall -Wextra -Werror -ggdb | |
LDFLAGS=-lsqlite3 -lpthread -ldl | |
all: test | |
test: test.o | |
$(CC) $^ $(LDFLAGS) -o $@ | |
test.o: test.c |
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 <vector> | |
#include <stdexcept> | |
#include <iomanip> | |
#include <sstream> | |
template <class T> | |
class SumPolicy | |
{ | |
public: |
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 <vector> | |
#include <memory> | |
#include <fstream> | |
#include <exception> | |
#include <algorithm> | |
#include <stdexcept> | |
/* TODO (вот она, десяточка моей мечты) | |
- Причесать функторы |
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 <vector> | |
#include <string> | |
#include <fstream> | |
// Only for POD types | |
template <class T> | |
void serialize(T& obj, std::ostream& out) | |
{ | |
//size_t s = sizeof(obj); |
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 <vector> | |
#include <list> | |
#include <set> | |
class Point | |
{ | |
public: | |
Point() | |
{ |