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; +}; + + +