diff options
Diffstat (limited to 'csm.cpp')
| -rw-r--r-- | csm.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |