summaryrefslogtreecommitdiff
path: root/3p15.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-07 16:35:33 +0200
committerOskar <[email protected]>2024-08-07 16:35:33 +0200
commita805c55e5b870ec3f65ce9dd5fdf6f5456a62ac3 (patch)
tree4a6a6a1635eb257b1c7a40943f0de23f4e5f456a /3p15.cpp
parentcb72c34ff23c8c6c2e6b8376d1cf8a5ca5b9becb (diff)
more exercises
Diffstat (limited to '3p15.cpp')
-rw-r--r--3p15.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/3p15.cpp b/3p15.cpp
new file mode 100644
index 0000000..27a648d
--- /dev/null
+++ b/3p15.cpp
@@ -0,0 +1,33 @@
+#include <iostream>
+#include <vector>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+
+/*
+ *
+ * 3.15
+ *
+ * Not completely according to instructions but thats okay. I still learned creating this.
+ */
+
+using std::string;
+using std::cout;
+using std::cin;
+using std::cerr;
+using std::clog;
+using std::endl;
+using std::vector;
+int main () {
+
+ string phrase;
+ vector<string> vp;
+ while(getline(cin, phrase)) {
+ vp.push_back(phrase);
+ }
+
+ for(auto vpi : vp) {
+ cout << vpi << endl;
+ }
+
+ return 0;
+}