summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csm.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/csm.cpp b/csm.cpp
new file mode 100644
index 0000000..15dd8ad
--- /dev/null
+++ b/csm.cpp
@@ -0,0 +1,28 @@
+#include <iostream>
+#include <chrono>
+#include <thread>
+#include <cstdlib>
+// CoSMo_C++
+void cl(); void printCosmos();
+int main() {
+ cl();
+ while (true) {
+ std::this_thread::sleep_for(std::chrono::milliseconds(70));
+ printCosmos();
+ } return 0;
+}
+
+void printCosmos() {
+ for(int i=0;i<11;i++)
+ std::cout << "*"
+ << " "
+ << " "
+ << " "
+ << " ";
+}
+#ifdef __WIN32
+void cl() {system("cls");}
+#endif
+#ifdef __unix
+void cl() {system("clear");}
+#endif