Skip to content

Instantly share code, notes, and snippets.

View pstachula-dev's full-sized avatar
👾

Paweł Stachula pstachula-dev

👾
View GitHub Profile
@pstachula-dev
pstachula-dev / gist:6498619
Created September 9, 2013 17:09
SDiZO, lab5 Drzewo DSW + Splay
#include<iostream>
#include<time.h>
#include<math.h>
using namespace std;
struct tree{
int key;
tree *left, *right;
};
tree *root;
@pstachula-dev
pstachula-dev / gist:6498600
Created September 9, 2013 17:08
SDiZO, lab4 Drzewo DSW
#include<iostream>
#include<time.h>
#include<math.h>
using namespace std;
struct tree{
int key;
int vist_c;
tree *left, *right;
};
tree *root;
@pstachula-dev
pstachula-dev / gist:6498587
Last active December 22, 2015 16:19
SDiZO, lab3 Drzewo BST
#include<iostream>
#include <time.h>
using namespace std;
struct tree{
int key;
tree *left, *right;
};
tree *root;
class Binary_tree{
@pstachula-dev
pstachula-dev / gist:6498572
Created September 9, 2013 17:06
SDiZO, lab2c (lista jednokierunkowa)
#include <iostream>
#include <time.h>
using namespace std;
struct list_el
{
int key;
list_el *next;
};
@pstachula-dev
pstachula-dev / gist:6498555
Last active December 22, 2015 16:19
SDiZO, lab2b (lista dwukierunkowa)
#include <iostream>
#include <time.h>
using namespace std;
struct list_el
{
int key;
list_el *next;
list_el *prev;
@pstachula-dev
pstachula-dev / gist:6498527
Last active December 22, 2015 16:19
SDiZO, lab2a (lista cykliczna)
#include <iostream>
#include <time.h>
// Lista cykliczna
using namespace std;
struct list_el
{
int key;
list_el *next;
@pstachula-dev
pstachula-dev / gist:6498512
Created September 9, 2013 17:02
SDiZO, Lab1
#include <iostream>
#include <time.h>
using namespace std;
struct element
{
int liczba;
char znak;
};
@pstachula-dev
pstachula-dev / gist:5690899
Created June 1, 2013 16:15
Programowanie obiektowe 6 projekt
//
// Projekt nr : 6
// gatunki plyt muzycznych
//Przykład 18 + A2.h +A2.cpp
#include <iostream>
#include <string>
#include <time.h>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/errno.h>
char * nazwa_pliku;
char znak;
int bloki, i, j, ilosc_znakow, ilosc_watkow, err, reszta;
pthread_t * th;
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdlib.h>
int usr1_ile, usr2_ile;
int i, j;