-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputInfo.cpp
More file actions
54 lines (49 loc) · 1.19 KB
/
Copy pathoutputInfo.cpp
File metadata and controls
54 lines (49 loc) · 1.19 KB
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
#include <iostream>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include "outputInfo.hpp"
#include "iomanip"
using namespace std;
outputInfo::outputInfo(int n){
size = n;
minScore = 0;
maxScore = 0;
minBound = 0;
maxBound = INFINITY;
}
const double outputInfo::getSize(){
return this->size;
}
const double outputInfo::getMinScore(){
return this->minScore;
}
const double outputInfo::getMaxScore(){
return this->maxScore;
}
const double outputInfo::getMaxBound(){
return this->maxBound;
}
const double outputInfo::getMinBound(){
return this->minBound;
}
void outputInfo::setMinScore(double sc){
this->minScore+=sc;
}
void outputInfo::setMaxScore(double sc){
this->maxScore+=sc;
}
void outputInfo::setMaxBound(double sc){
if(sc<maxBound)
this->maxBound = sc;
}
void outputInfo::setMinBound(double sc){
if(sc>minBound)
this->minBound = sc;
}
void outputInfo::printInfo(ofstream* outfile){
*outfile << "||\t" << setw(17) << left << this->minScore <<setw(16) << left << this->maxScore <<setw(15) << left<< this->minBound <<setw(14) << left<< this->maxBound << "\t";
}