-
Notifications
You must be signed in to change notification settings - Fork 0
/
interhacktive.h
41 lines (34 loc) · 887 Bytes
/
interhacktive.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
34
35
36
37
38
39
40
41
#ifndef INTERHACKTIVE_H
#define INTERHACKTIVE_H
#include <iostream>
#include <string>
#include <vector>
using std::vector;
using std::string;
using std::endl;
using std::cout;
class Interhacktive
{
public:
void setUpKey( char value );
void setDownKey( char value );
void addOption( string opt );
void clearOptions();
void removeOption( int pos );
void modifyOption( int pos, string value );
void listOptions();
string listOption(int pos);
void rawMode();
void cookedMode();
void menu(char value);
void setExitKey(char press);
void clearSelect();
private:
char upKey;
char downKey;
int selected = 0;
char exitValue;
bool exit_set = false;
vector<string> list ; //if you have any problem add the " = {} "
};
#endif