-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMV.cpp
More file actions
55 lines (55 loc) · 741 Bytes
/
MV.cpp
File metadata and controls
55 lines (55 loc) · 741 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "MV.hpp"
void MV::setCost(double p_cost)
{
cost = p_cost;
}
void MV::setCount(int p_count)
{
count = p_count;
}
void MV::setSqlstr(string p_sqlstr)
{
sqlstr = p_sqlstr;
}
void MV::setDims(int p_dims)
{
dims = p_dims;
}
void MV::setBenefit(int p_benefit)
{
benefit = p_benefit;
}
void MV::setChr(vector<char> p_chr)
{
chr = p_chr;
}
double MV::getCost()
{
return cost;
}
int MV::getCount()
{
return count;
}
int MV::getDims()
{
return dims;
}
int MV::getBenefit()
{
return benefit;
}
string MV::getSqlstr()
{
return sqlstr;
}
vector<char> MV::getChr()
{
return chr;
}
void MV::display()
{
cout << "count:" << count << "cost:" << cost << endl;
cout << "sql:" << sqlstr << endl;
cout << "benefit:" << benefit << endl;
}