-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (36 loc) · 905 Bytes
/
Copy pathmain.cpp
File metadata and controls
36 lines (36 loc) · 905 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
#include "Interface.h"
#include "Manage.h"
#include <string>
#include <iostream>
#include <conio.h>
int main()
{
system("color F0");
Interface::mainMenu();
/*
State a;
State b;
State c;
int n;
std::cin>>n;
a.setDefence(n);
std::cout<<"comn def a = "<<*a.common_defence<<"\n";
std::cin>>n;
b.setDefence(n);
std::cout<<"comn def b = "<<*b.common_defence<<"\n";
std::cin>>n;
c.setDefence(n);
std::cout<<"comn def c = "<<*c.common_defence<<"\n";
std::string name;
std::cin>>name;
Alliance nato(name);
nato.joinState(&a);
std::cout<<"comn def a = "<<*a.common_defence<<"\n";
nato.joinState(&b);
std::cout<<"comn def b = "<<*b.common_defence<<"\n";
nato.joinState(&c);
std::cout<<"comn def c = "<<*c.common_defence<<"\n";
std::cout<<"Comn def = "<<nato.getDefence()<<"\n";
getch();
*/
}