This file contains 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
#pragma once | |
#include <string> | |
typedef std::string Key; | |
struct Value | |
{ | |
unsigned age; | |
unsigned weight; |
This file contains 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 "HashTable.h" | |
HashTable::HashTable() | |
{ | |
table = new ListItem * [table_size]; | |
std::fill(table, table + table_size, nullptr); | |
} | |
HashTable::~HashTable() |
This file contains 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
// | |
// Created by glavak on 23.09.16. | |
// | |
#ifndef MYARRAY_SMARTPOINTER_H | |
#define MYARRAY_SMARTPOINTER_H | |
#include <utility> | |
template<class T> |
This file contains 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 <string> | |
#include <iostream> | |
#include <cstdlib> | |
using namespace std; | |
template<typename T> | |
class list | |
{ | |
private: |
This file contains 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
#define _CRT_SECURE_NO_WARNINGS | |
#include<stdio.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
#include <vector> | |
#include<windows.h> | |
#include<iostream> | |
#include <Windows.h> | |
#include<fstream> | |
#include<string> |
This file contains 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<conio.h> | |
#include <iostream> | |
#include <vector> | |
#define _CRT_SECURE_NO_WARNINGS | |
#pragma warning(disable:4996) | |
class string | |
{ | |
private: |
This file contains 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 <stdio.h> | |
#include <sys/socket.h> | |
#include <stdlib.h> | |
#include <netinet/in.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <poll.h> | |
#include <errno.h> | |
int main(int argc, const char * argv[]) |
This file contains 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 <stdio.h> | |
#include <sys/socket.h> | |
#include <stdlib.h> | |
#include <netinet/in.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <poll.h> | |
#include <errno.h> | |
int main(int argc, const char * argv[]) |
This file contains 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 "hexpoint.h" | |
#include "myimage.h" | |
#include <QDebug> | |
#include <QStack> | |
MyImage::MyImage(int width, int height) : QImage(width, height, QImage::Format_ARGB32) | |
{ | |
clear(Color(240, 240, 240)); | |
} |
This file contains 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
void IsoLinesWidget::paintIsoLines(QPainter & painter) | |
{ | |
QSizeF squareSize((float)imageRect.width() / widthGridCount, (float)imageRect.height() / heightGridCount); | |
QVector<float> topLine(widthGridCount + 1); | |
QVector<float> bottomLine(widthGridCount + 1); | |
for (int x = 0; x < widthGridCount + 1; ++x) | |
{ | |
QPointF coords = QPointF(squareSize.width()*x, 0); |
OlderNewer