-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
35 lines (25 loc) · 902 Bytes
/
utils.h
File metadata and controls
35 lines (25 loc) · 902 Bytes
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
34
35
#ifndef UTILS
#define UTILS
#include <ctime> // defines time
#include <fstream> // defines fstream
#include <iostream> // defines cin and cout
#include <map> // defines map
#include <sstream> // defines istringstream
#include <stack> // defines stack
#include <string> // defines string
#include <thread> // defines thread
#include <vector> // defines vector
#include <windows.h> // defines Sleep
#define sleep(x) Sleep(1000 * (x)) // redefine Sleep
using namespace std;
struct aRecord {
int hard = 0;
int medium = 0;
int easy = 0;
};
typedef vector<string> vs;
bool find(string s, vs strings);
string check(string& s, istringstream& i, int& n, int l, int h, bool& timeUp, vs strings = {});
pair<string, aRecord> aCreate(string& s, istringstream& i);
pair<string, int> fCreate(string& s, istringstream& i);
#endif // UTILS