summaryrefslogtreecommitdiff
path: root/csm.cpp
blob: 15dd8ad35c4a1052f66ccc683f50eb19f7508ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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