From dd3bac8814417fbcf8a584478b76c12e3609f600 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Jul 2023 12:15:30 -0700 Subject: [PATCH] Created Header for class and random printing in main --- main.cpp | 15 +++++++++++++++ test.h | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test.h diff --git a/main.cpp b/main.cpp index e69de29..ed82eea 100644 --- a/main.cpp +++ b/main.cpp @@ -0,0 +1,15 @@ +#include +#include "test.cpp" +using namespace std; + +int main() { + char c; + for(int i = 0; i < 10; i++) { + c = (i % 2 == 0) ? 'E' : 'O'; + cout << c << "\n"; + } + + + + return 0; +} \ No newline at end of file diff --git a/test.h b/test.h new file mode 100644 index 0000000..1c6dfe1 --- /dev/null +++ b/test.h @@ -0,0 +1,13 @@ +class Test{ +private: + int a; + static short creation_count; +public: + explicit Test(int a); + ~Test(); + + void print() const; +}; + + +