aboutsummaryrefslogtreecommitdiff
path: root/oop2w1/main.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-10 11:59:16 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-10 11:59:16 +0100
commit8f9c3d8093cba3204e3ead853ee36820a201a1e7 (patch)
tree71caa7b13c47b1ac098920aee3f6e396c0801971 /oop2w1/main.cpp
parentffae2cb77bfb3263146a2de0deedf6528d4df461 (diff)
week 1 van oop2 klaar
Diffstat (limited to 'oop2w1/main.cpp')
-rw-r--r--oop2w1/main.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/oop2w1/main.cpp b/oop2w1/main.cpp
new file mode 100644
index 0000000..e9d3197
--- /dev/null
+++ b/oop2w1/main.cpp
@@ -0,0 +1,28 @@
+/*
+ * DO NOT ADAPT THIS FILE!!!
+ */
+
+#include "ProcessFile.h"
+
+#include <fstream>
+#include <iostream>
+
+#define szFilename "HuiswerkWeek1.dat"
+
+int main()
+{
+ std::ifstream cInput( szFilename, std::ios::in | std::ios::binary );
+ ProcessFile cProcessFile;
+
+ if ( cInput )
+ {
+ cProcessFile.process( cInput );
+
+ cInput.close();
+ }
+
+ std::cin.get();
+
+ return 0;
+}
+