-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoneOP.h
28 lines (23 loc) · 897 Bytes
/
oneOP.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
#ifndef _ONEOP_H
#define _ONEOP_H
#include "io_utils.h"
#include <vector>
#include <string>
#include "MissionBank.h"
class oneOP : public MissionBank {
protected:
vector <int> numsVec;
vector <int> xPlace;
public:
oneOP(char *str, Menu *menu, vector <char*> nums, vector <char*> op) :MissionBank(str, menu, nums, op) {}
~oneOP() { numsVec.clear(); }
virtual void initMis();
virtual bool isCorrectNum(int x);
virtual vector <int> PickNums();//making the exe - with numbers
//bool helperMath(vector <char> op, vector <int>nums);
virtual bool isValid(vector <int>nums, vector <int> xPlace);//checking if there is a correct answer
virtual void makeValidExe();//checking validation of the exe
//vector<int> xPlace;
virtual bool calculate(vector<int >nums, vector <char> op);//this function calculte and return true when the equation correct
};
#endif