Skip to content

Instantly share code, notes, and snippets.

View Qub3k's full-sized avatar

Jakub Nawała Qub3k

  • AGH University of Science and Technology
  • Krakow, Poland
View GitHub Profile
#include <iostream>
#include <algorithm>
#define SIZE 10
using namespace std;
int index = 0; // ustalami globalna zmienna przechowujace ilosc elementow juz wpisanych do tabeli dValue
int compare (const void* a, const void* b) // funkcja sluzaca do porownywania dwoch kolejnych elementow w tablicy
#include <iostream>
#include <algorithm>
#define SIZE 5
using namespace std;
int compare (const void* a, const void* b) // funkcja potrzebna do qsort(), porównuje dwa kolejne elementy
{
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
bool compare (string a, string b) // funkcja porównująca stringi
{
return (a < b);
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
void ADD(char *, char *, char *);
void DELETE(char *, char *, char *);
struct contacts //Structure for contacts in a phone book
{