summaryrefslogtreecommitdiff
path: root/3p8-v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3p8-v1.cpp')
-rw-r--r--3p8-v1.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/3p8-v1.cpp b/3p8-v1.cpp
new file mode 100644
index 0000000..a53a408
--- /dev/null
+++ b/3p8-v1.cpp
@@ -0,0 +1,32 @@
+#include <iostream>
+#include "sales_data.hpp"
+#include "sales_item.hpp"
+
+/*
+ *
+ * 3.8 v1
+ *
+ *
+ */
+
+using std::string;
+using std::cout;
+using std::cin;
+using std::cerr;
+using std::clog;
+using std::endl;
+int main () {
+
+ string Xer;
+ cout << "Enter a string" << endl;
+ cin >> Xer;
+ decltype(Xer.size()) Index = 0;
+ while(Index != Xer.size()) {
+ Xer[Index++] = 'X'; // We can use post increment operator
+ //Index++; // Or we can increment it here
+ //++Index; // We could also do this
+ }
+
+ cout << Xer << endl;
+ return 0;
+}