-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 659 Bytes
/
main.cpp
File metadata and controls
33 lines (27 loc) · 659 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
#include <iostream>
#include <vector>
#include "IProblem.h"
#include "Problem1.h"
#include "Problem2.h"
#include "Problem3.h"
#include "Problem4.h"
using namespace std;
int main()
{
vector<IProblem*> problems;
problems.push_back(new Problem1());
problems.push_back(new Problem2());
problems.push_back(new Problem3());
problems.push_back(new Problem4());
for (int i(0); i < problems.size(); i++) {
IProblem* p = problems[i];
p->DescribeProblem();
p->ExecuteTests();
p->TearDown();
delete p;
}
problems.clear();
string s;
cout << "Press any key" << endl;
cin >> s;
}