Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / task1 / main.cpp
diff options
context:
space:
mode:
Commitbe9dc71f94c40127657723e2881b9929c297a736 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2021-05-14 14:21:20 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2021-05-14 14:21:20 +0300
Filesf94484f124775ad7e0bbf25da75ccf2bd84ba33b /Sem. 12/task1/main.cpp
Object-oriented_programming_FMI-be9dc71f94c40127657723e2881b9929c297a736.tar
Object-oriented_programming_FMI-be9dc71f94c40127657723e2881b9929c297a736.tar.gz
Object-oriented_programming_FMI-be9dc71f94c40127657723e2881b9929c297a736.zip
Parentf8ddb55bb214bcf39a0383f7556ff1a8a00560ac (diff)
sem 12
1 files changed, 27 insertions, 0 deletions
-rw-r--r--Sem. 12/task1/main.cpp27
diff --git a/Sem. 12/task1/main.cpp b/Sem. 12/task1/main.cpp
new file mode 100644
index 0000000..296f09f
--- /dev/null
+++ b/Sem. 12/task1/main.cpp
@@ -0,0 +1,27 @@
+#include <iostream>
+#include "Bar/Bar.h"
+#include "Drinks/EnergyDrink.h"
+
+using namespace std;
+
+int main()
+{
+ Bar b;
+
+ b.addDrink("Coke", 330);
+
+ b.addDrink("Fanta", 500);
+
+ b.addAlocoholDrink("Zagorka", 500, 5);
+
+ cout << b.getDrink().getName()<<endl;
+ cout << b.getDrink().getName() << endl;
+
+ cout << b.getAcloholDrink().getName() << endl;
+
+ cout << b.getAllDrinksSold() << endl;
+
+ EnergyDrink energyDrink("Monster", 500, "ECAS");
+
+ std::cout << energyDrink.getCertifiate();
+}