answer (Анимация загрузки)

#include "stdafx.h"//del #include <iostream> using namespace std; void loading(int val) { system("cls"); if (val == 0) cout << "|"; if (val == 1) cout << "/"; if (val == 2) cout << "-"; if (val == 3) cout << "\\"; } int main(int ) { int val = 0; int i = 0; while (true) { i++; if (i == 100000000) { i = 0; loading(val); val++; if (val > 3) val = 0; } } return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.