Completed part 2
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
#include "TDoublyLinkedList.h"
|
||||
#include "TPerson.h"
|
||||
#include "TStack.h"
|
||||
|
||||
struct TPerson;
|
||||
|
||||
class Utils {
|
||||
public:
|
||||
@@ -11,16 +13,11 @@ class Utils {
|
||||
static void PrintList(const TDoublyLinkedList &document);
|
||||
static int RemoveLine(TDoublyLinkedList &document, TStack &undoStack, TStack &redoStack, int index);
|
||||
static int RandomInt(int, int);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static int Partition(TPerson** arr, int startIndex, int endIndex);
|
||||
static void QuickSort(TPerson**, int, int);
|
||||
static bool CompareLastnames(const TPerson*, const TPerson*);
|
||||
static int BinarySearch(TPerson**, int, int, const std::string&);
|
||||
static int CountMatches(TPerson**, int, const std::string&);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user