-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuperkalkulator.h
More file actions
40 lines (38 loc) · 891 Bytes
/
superkalkulator.h
File metadata and controls
40 lines (38 loc) · 891 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
36
37
38
39
40
/**
* @author 13512096 Kevin
* @file superkalkulator.h
* @class superkalkulator
* @brief Kelas besar untuk menangani masukan untuk input, setting, dan run kalkulator
*/
#ifndef superkalkulator_H
#define superkalkulator_H
#include <string>
#include "Stack.h"
#include <sstream>
using namespace std;
class superkalkulator{
public:
superkalkulator();
~superkalkulator();
int getCountLog();
void WriteLog(string str);
void Save();
void Input(string input);
void Undo(int n);
void Redo(int n);
void setMode(int n);
void setKalkulator(int n);
void runKalkulatorArab(string input);
void runKalkulatorLogic(string input);
void runKalkulatorRomawi(string input);
Stack<string> getLog();
int CheckEkspresiType(string input);
void Set();
void ShowMem(int n);
void ShowAll();
private:
Stack<string> Log;
int modeekspresi;
int modekalkulator;
};
#endif