From bc30f2b7abb1a43d9a103f310543eef5ae5c4ee9 Mon Sep 17 00:00:00 2001 From: jstmax! <87650746+jstmaxlol@users.noreply.github.com> Date: Sun, 2 Mar 2025 02:33:35 +0100 Subject: > CoSMo_C++ : a silly program i loop on my second monitor (& piped into lolcat) --- csm.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 csm.cpp 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 +#include +#include +#include +// 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 -- cgit v1.3.1