-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (24 loc) · 698 Bytes
/
main.cpp
File metadata and controls
34 lines (24 loc) · 698 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
//============================================================================
// Name : main.cpp
// Author : Ak0s
//============================================================================
#include <iostream>
#include "carrier.hpp"
#include "aircraft.hpp"
#include "f16.hpp"
#include "f35.hpp"
using namespace std;
int main() {
Carrier carrier1(300,5000);
carrier1.add_aircraft("F16");
carrier1.add_aircraft("F16");
carrier1.add_aircraft("F35");
Carrier carrier2(10,400);
carrier2.add_aircraft("F16");
carrier2.add_aircraft("F35");
carrier2.add_aircraft("F35");
carrier1.fill();
carrier2.fight(carrier1);
cout << carrier1.get_status();
return 0;
}