forked from Ak0s/zerda-exam-cpp-foundations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (31 loc) · 865 Bytes
/
Copy pathmain.cpp
File metadata and controls
36 lines (31 loc) · 865 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
//============================================================================
// Name : AirCraftProject.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
#include <vector>
#include <string>
#include "Carrier.h"
#include "AirCraft.h"
#include "F16.h"
#include "F35.h"
using namespace std;
int main() {
Carrier carrier;
//int ammo_storage = 100;
F16 f1;
F35 f2;
f2.refill(ammo_storage);
cout << f2.get_status() << endl;
f2.fight();
cout << "After fight: " << endl;
cout << f2.get_status() << endl << endl;
cout << "Carrier: " << endl;
carrier.add_to_vector("F16");
cout << carrier.get_all_status();
carrier.fill_all_aircraft(ammo_storage);
return 0;
}