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 <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 |
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 <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 | |
{ |
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 <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
bool compare (string a, string b) // funkcja porównująca stringi | |
{ | |
return (a < b); |
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 <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 | |
{ |