-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathalgo.h
33 lines (29 loc) · 926 Bytes
/
algo.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
27
28
29
30
31
32
33
#ifndef ALGO_H
#define ALGO_H
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <random>
using namespace std;
vector <string> ReadFile(string name);
vector<string> ProcessString(string input, string splitby);
string ProcessCoordinate(string str);
string TrimSpace(string str);
string SurroundCheck(string **map, int x, int y, int tableWidth, int tableHeight);
string ConvertToLMH(int val);
string ConvertToIndex(string val);
int ConvertStringToInteger(string s);
int GetRandomNumber(int min, int max);
void GenerateStringMap(string** arr, int width, int height);
void GenerateIntegerMap(int** arr, int width, int height);
void Render(string** arr, int width, int height);
void Freeze();
void DeleteStringMap(string** arr, int height);
void DeleteIntMap(int** arr, int height);
void MySleep(int amount);
void ClearScreen();
#endif