-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetEntry.h
26 lines (17 loc) · 846 Bytes
/
GetEntry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef GETENTRY_H
#define GETENTRY_H
#include "Player.h"
#include <vector>
#include <memory>
#include <string>
int binarySearch(std::vector<int> numVec, int l, int r, int x);
//Search for a number in a vector using binarSearch.
int binaryStringSearch(std::vector<std::shared_ptr<Player>> pVec, std::string x, int n);
//Search for a Player by name from a vector of Players using binarySearch.
void nameSort(std::vector<std::shared_ptr<Player>>& vec);
//Sorts Players in a vector by name in ascending order using bubbleSort.
void scoreSort(std::vector<std::shared_ptr<Player>> vec);
//Sorts Players in a vector by their score in descending order using bubbleSort.
void checkIfInt(int &num);
//This is a test commit. Just adding this comment in the getEntry.h file.
#endif