#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
char op,hhy,zhz;
double a;
double b;
char c;
cout<<"1.English"<<endl<<"2.简体中文"<<endl<<"3.繁體中文"<<endl;
cin>>zhz;
if(zhz=='2'){
cout<<" 欢 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"朝浩字!!!"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
cin>>op;
system("cls");
for(int sum=0;sum<=100000000;sum++){
cout<<"秒(s) 分(m) 时(h)"<<endl<<"我建议你不要写2分30秒之类的(可以写2.5分) 我的意思是只能写整的"<<endl<<"输入两个0即可退出"<<endl<<"使用说明:输入s/m/h,然后空一格,输入数字(详细请输入下x0)"<<endl<<"请输入:";
cin>>c>>a;
if(c=='s'){
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
cout<<"时间到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='m'){
system("cls");
b=a*60*1000;
for(int i=b/1000;i>=0;i--){
if(i>=60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else{
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"时间到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='h'){
system("cls");
b=a*60*60;
for(int i=b;i>=0;i--){
if(i>3600){
cout<<i/3600;
cout<<":"<<i%3600/60;
cout<<":"<<i%3600%60;
Sleep(1000);
system("cls");
}
else if(i>60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else {
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"时间到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='0'){
system("cls");
cout<<"感谢使用!!!"<<endl<<"朝浩字工作室(2023.11.23)";
return 0;
}
else if(c=='x'){
cout<<"首先输入s或m或h"<<endl<<"s是指你后面输入的数字是以秒为单位的"<<endl<<"m是指你后面输入的数字是以分为单位的"<<endl<<"h是指你后面输入的数字是以时为单位的"<<endl<<" 00是退出"<<"(输入任意键退出说明)";
cin>>hhy;
system("cls");
}
}
}
else if(zhz=='1'){
cout<<" Welcome";
Sleep(200);
cout<<" "<<"to";
Sleep(200);
cout<<" "<<"use";
Sleep(500);
cout<<endl<<" "<<"ZhaoHaozi!!!"<<endl;Sleep(500);cout<<" Press any key to enter."<<endl<<" " ;
cin>>op;
system("cls");
for(int sum=0;sum<=100000000;sum++){
cout<<"second (s) minute(m) hour(h)"<<endl<<"I suggest you don't write 2 minutes and 30 seconds (you can write 2.5 minutes). I mean, you can only write the whole thing."<<endl<<"Enter two 0s to exit."<<endl<<"Instructions for use: Enter s/m/h, then leave one blank and enter the number (please enter x0 for details)."<<endl<<"Please enter:";
cin>>c>>a;
if(c=='s'){
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
cout<<"time is up!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='m'){
system("cls");
b=a*60*1000;
for(int i=b/1000;i>=0;i--){
if(i>=60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else{
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"time is up!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='h'){
system("cls");
b=a*60*60;
for(int i=b;i>=0;i--){
if(i>3600){
cout<<i/3600;
cout<<":"<<i%3600/60;
cout<<":"<<i%3600%60;
Sleep(1000);
system("cls");
}
else if(i>60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else {
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"time is up!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='0'){
system("cls");
cout<<"Thanks for using!!!"<<endl<<"ZhaoHaozistudio(2023.11.26)";
return 0;
}
else if(c=='x'){
cout<<"Enter s or m or h first."<<endl<<"S means that the number you enter later is in seconds."<<endl<<"M means that the number you enter later is divided into units."<<endl<<"H means that the number you enter later is in hours."<<endl<<" 00 is exit"<<"(Enter any key to exit)";
cin>>hhy;
system("cls");
}
}
}
else if(zhz=='3'){
cout<<" 歡 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"朝浩字!!!"<<endl;Sleep(500);cout<<" 按任意鍵進入"<<endl<<" " ;
cin>>op;
system("cls");
for(int sum=0;sum<=100000000;sum++){ // 我建议你不要写2分30秒之类的(可以写2.5分) 我的意思是只能写整的 使用说明:输入s/m/h,然后空一格,输入数字(详细请输入下x0)
cout<<"秒(s) 分(m) 時(h)"<<endl<<"我建議你不要寫2分30秒之類的(可以寫2.5分) 我的意思是説只能寫整的"<<endl<<"輸入兩個0即可退出"<<endl<<"使用説明:輸入s/m/h,然後空一格,輸入數字(詳細請輸入x0)"<<endl<<"请输入:";
cin>>c>>a;
if(c=='s'){
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
cout<<"時間到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='m'){
system("cls");
b=a*60*1000;
for(int i=b/1000;i>=0;i--){
if(i>=60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else{
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"時間到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='h'){
system("cls");
b=a*60*60;
for(int i=b;i>=0;i--){
if(i>3600){
cout<<i/3600;
cout<<":"<<i%3600/60;
cout<<":"<<i%3600%60;
Sleep(1000);
system("cls");
}
else if(i>60){
cout<<i/60<<":";
cout<<i%60;
Sleep(1000);
system("cls");
}
else {
cout<<i;
Sleep(1000);
system("cls");
}
}
cout<<"時間到了!!!";
system("start https://oj.ylcz.top/discussion-detail/143");
system("cls");
}
else if(c=='0'){
system("cls");
cout<<"感謝使用!!!"<<endl<<"朝浩字工作室(2023.11.23)";
return 0;
}
else if(c=='x'){ //s是指你后面输入的数字是以秒为单位的
cout<<"首先輸入s或m或h"<<endl<<"s是指你後面輸入的數字是以秒爲單位的"<<endl<<"m是指你後面輸入的數字是以分爲單位的"<<endl<<"h是指你後面輸入的數字是以時爲單位的"<<endl<<" 00是退出"<<"(輸入任意鍵退出説明)";
cin>>hhy;
system("cls");
}
}
}
}
timer3.0
最新推荐文章于 2024-09-02 20:21:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)