123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include <iostream>
- int main()
- {
- char TABLE_TEXT[10000] = R"(
- $$$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\ $$$$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$$$\ $$$$$$$\
- \__$$ __|\_$$ _|$$$\ $$$ |$$ _____| $$ __$$\ $$ __$$\ $$$\ $$ |$$ | $$ |$$ _____|$$ __$$\\__$$ __|$$ _____|$$ __$$\
- $$ | $$ | $$$$\ $$$$ |$$ | $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ |
- $$ | $$ | $$\$$\$$ $$ |$$$$$\ $$ | $$ | $$ |$$ $$\$$ |\$$\ $$ |$$$$$\ $$$$$$$ | $$ | $$$$$\ $$$$$$$ |
- $$ | $$ | $$ \$$$ $$ |$$ __| $$ | $$ | $$ |$$ \$$$$ | \$$\$$ / $$ __| $$ __$$< $$ | $$ __| $$ __$$<
- $$ | $$ | $$ |\$ /$$ |$$ | $$ | $$\ $$ | $$ |$$ |\$$$ | \$$$ / $$ | $$ | $$ | $$ | $$ | $$ | $$ |
- $$ | $$$$$$\ $$ | \_/ $$ |$$$$$$$$\ \$$$$$$ | $$$$$$ |$$ | \$$ | \$ / $$$$$$$$\ $$ | $$ | $$ | $$$$$$$$\ $$ | $$ |
- \__| \______|\__| \__|\________| \______/ \______/ \__| \__| \_/ \________|\__| \__| \__| \________|\__| \__|
-
- )";
- int UserInput,ConverMinute,ConverHours,UserChant;
-
-
- std::cout << TABLE_TEXT << "\n" << "Введите любое число (секунды) \n";
- std::cin >> UserInput;
-
- std::cout << "Во что вы хотите перевести (Минуты - 2 Часы - 3 Всё сразу - 23)\n";
-
- std::cin >> UserChant;
-
- switch (int(UserChant))
- {
- case 2:
- ConverMinute = (UserInput % 3600)/60;
- std::cout << "Вывод: " << ConverMinute;
- break;
- case 3:
- ConverHours = UserInput/3600;
- std::cout << "Вывод: " << ConverHours;
- break;
- case 23:
- ConverMinute = UserInput/60;
- ConverHours = UserInput/60;
- std::cout << "Вывод " << "\n" << "Минуты " << ConverMinute << "\n" << "Часы " << ConverHours;
- break;
- default:
- std::cout << "Ничего не выбрано";
- break;
- }
- }
|