/* 朝浩字工作室 */
/* 版权所有,严禁转载 */
/* (部分有所借鉴) */
/* timer 20.0 */
/*网址:https://oj.ylcz.top/discussion-detail/516 */
/*邮箱:http://ybt.ssoier.cn:8088/mail_send.php */
/*温馨提示:计算机中禁止有"时间到了!!!" */
/*"time is up!!!" "時間到了!!!"的文件,如违反 */
/* 此条件,后果自负 */
#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
#include"conio.h"
#include"dos.h"
#include "windows.h"
#include<ctime>
#include<cstdlib>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;
HWND hwnd=GetForegroundWindow();
void TopWindow(HWND &hWnd) {
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}
void say(string s){
for(int i=0;i<=s.size();i++){
cout<<s[i];
Sleep(10);
}
}
void sayz(string s){
for(int i=0;i<=s.size();i++){
cout<<s[i];
Sleep(10);
}
cout<<endl;
}
int sum114514;
int main(){
system("mode con cols=90 lines=30");
HWND hWnd=GetForegroundWindow();
TopWindow(hWnd);
Sleep(10);
int n,y,r,s,f,m;
char red;
char *myweek[]={"天","一","二","三","四","五","六"};
char *cweek[]={"Sun.","Mon.","Tues.","Wed.","Thur.","Fri.","Sart."};
char *jntmweek[]={"天","壹","贰","叁","肆","伍","陆"};
time_t nowtime;
nowtime = time(NULL);
struct tm *local;
local = localtime(&nowtime);
int xiaoshi=0;
int fen=0;
char op,hhy,zhz;
double a;
double b;
char c,ccc,dasima,xiaolifeidao;
char ji;
char niganma;
double kun;
char nb;
char sss;
char asdf;
char timer;
int caishu=local->tm_sec*local->tm_min*local->tm_sec;
cout<<" ";
sayz("欢迎使用");
cout<<" ";
sayz("timer");
cout<<" ";
sayz("1. 开始");
cout<<" " ;
sayz("2.语言设置---Language settings---語言設置");
cout<<" ";
sayz("按其他键退出---Press other keys to exit---按其他鍵退出");
timer=getch();
system("cls");
//简体中文1/
if(timer=='1'){
for(int hanhaoyu=1;hanhaoyu<=1000;hanhaoyu++){
system("cls");
say("1.计时器");
cout<<endl;
say("2.换算器");
cout<<endl;
say("3.钟表");
cout<<endl;
say("4.闹钟(钟表有误差)");
cout<<endl;
say("5.秒表");
cout<<endl;
say("6.设置");
cout<<endl;
say("7.猜数游戏");
cout<<endl;
say("0.退出");
cout<<endl;
sayz("x.关机");
sayz("n.网站");
say("g.语言设置---Language settings---語言設置");
cout<<endl;
say("(非法输入会回到这个界面)");
ji=getch();
简体中文1-1//
if(ji=='1'){
system("cls");
cout<<" 欢 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-计时器"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
op=getch();
system("cls");
for(int sum=0;sum<=100000000;sum++){
say("秒(s) 分(m) 时(h)");
cout<<endl;
say("我建议你不要写2分30秒之类的(可以写2.5分) 我的意思是只能写整的");
cout<<endl;
say("输入两个0即可退出");
cout<<endl;
say("使用说明:输入s/m/h,然后空一格,输入数字(详细请输入下x0)");
cout<<endl;
say("请输入:");
cin>>c>>a;
if(c=='s'){
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
ShowWindow(hwnd,SW_MAXIMIZE);
say("时间到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='m'){
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
say("时间到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='h'){
system("cls");
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
say("时间到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='0'){
system("cls");
say("感谢使用!!!");
cout<<endl;
say("朝浩字工作室(2023.11.23)");
return 0;
}
else if(c=='x'){
system("cls");
say("首先输入s或m或h");
cout<<endl;
say("s是指你后面输入的数字是以秒为单位的");
cout<<endl;
say("m是指你后面输入的数字是以分为单位的");
cout<<endl;
say("h是指你后面输入的数字是以时为单位的");
cout<<endl;
say(" 00是退出");
cout<<endl;
say("(输入任意键退出说明)");
cin>>hhy;
system("cls");
}
else{
system("cls");
cout<<"非法输入";
Sleep(3000);
system("cls");
return 0;
}
}
} //简体中文1-n///
else if(ji=='n'){
system("cls");
cout<<" 欢 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-浏览器"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
op=getch();
system("cls");
system("cls");
sayz("1.手动输入网址");
sayz("2.常用网址");
char t,ffff,bili;
t=getch();
if(t=='1'){
system("cls");
sayz("首先输入“start ”,然后输入网址");
sayz("按任意键继续");
ffff=getch();
system("start cmd");
return 0;
}
else if(t=='2'){
system("cls");
sayz("常用网址:");
sayz("1.云领橙长 https://ylcz.top/");
sayz("2.一本通 http://ybt.ssoier.cn:8088");
sayz("3.360 https://hao.360.com/?a1004");
sayz("4.博客 https://blog.csdn.net/");
sayz("5.百度 https://www.baidu.com");
bili=getch();
if(bili=='1'){
system("start https://ylcz.top/"); //system("start ")
}
else if(bili=='2'){
system("start http://ybt.ssoier.cn:8088");
}
else if(bili=='3'){
system("start https://hao.360.com/?a1004");
}
else if(bili=='4'){
system("start https://blog.csdn.net/");
}
else if(bili=='5'){
system("start https://www.baidu.com");
}
}
}
//简体中文1-2///
else if(ji=='2'){
system("cls");
cout<<" 欢 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-换算器"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
niganma=getch();
system("cls");
for(int i=1;i<=100000;i++){
say("秒(s) 分(m) 时(h)");
cout<<endl;
say("输入1ff即可退出");
cout<<endl;
say("使用说明:输入时间,然后空一格,输入单位,再空一格,输入换算后的单位(详细请输入下0xx)");
cout<<endl;
say("请输入:");
cin>>kun>>nb>>sss;
if(nb=='s'){
if(sss=='m'){
cout<<kun/60<<"分";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60/60<<"时";
cin>>asdf;
system("cls");
}
}
else if(nb=='m'){
if(sss=='s'){
cout<<kun*60<<"秒";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60<<"时";
cin>>asdf;
system("cls");
}
}
else if(nb=='h'){
if(sss=='s'){
cout<<kun*60*60<<"秒";
cin>>asdf;
system("cls");
}
else if(sss=='m'){
cout<<kun*60<<"分";
cin>>asdf;
system("cls");
}
}
else if(nb=='x'){
say("首先输入换算前的数字,然后空一格,输入换算前的单位,再空一格,输入换算后的单位(按任意键退出说明)");
cin>>ccc;
system("cls");
}
else if(kun==1){
system("cls");
say("感谢使用");
cout<<endl;
say("朝浩字工作室");
return 0;
}
else{
break;
}
}
}
//简体中文1-3///
else if(ji=='3'){
system("cls");
while(1)
{
cout<<"CAZ-时钟"<<endl;
cout<<"当前时间:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"时"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<myweek[local->tm_wday]<<endl;
cout<<"alt+F4退出";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}
//简体中文1-4///
else if(ji=='4'){
system("cls");
cout<<" 欢 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-闹钟"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
op=getch();
system("cls");
system("cls");
cout<<"当前时间:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"时"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<myweek[local->tm_wday]<<endl;
cout<<"请输入闹钟时间(时:分:秒):";
cout<<endl;
cin>>s>>f>>m;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
while(1)
{
int bbb=f-local->tm_min-1;
cout<<"当前时间:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"时"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<myweek[local->tm_wday]<<endl;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
int cha=zzzzzz-zhzh;
cout<<"还有 "<<cha/3600<<" 时 "<<cha%3600/60<<" 分 "<<cha%3600%60<<" 秒 ";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else if(local->tm_hour==s&&local->tm_min==f&&local->tm_sec==m){
ShowWindow(hwnd,SW_MAXIMIZE);
say("时间到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
return 0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}
//简体中文1-5///
else if(ji=='5'){
system("cls");
cout<<" 欢";
Sleep(300);
cout<<" 迎";
Sleep(300);
cout<<" 使";
Sleep(300);
cout<<" 用";
cout<<endl;
Sleep(500);
cout<<" CAZ-秒表";
cout<<endl<<" (按任意键进入)";
dasima=getch();
system("cls");
say("按“j”键开始");
xiaolifeidao=getch();
if(xiaolifeidao=='j'){
system("cls");
cout<<"0:0:0";
Sleep(1000);
system("cls");
for(long long i=1;i<=10000000000000000000000000000000000000000000;i++){
cout<<xiaoshi<<":"<<fen<<":"<<i;
if(i==60){
fen+=1;
i=0;
}
if(fen==60){
xiaoshi+=1;
fen=0;
}
Sleep(1000);
system("cls");
}
}
else{
break;
}
}
//简体中文1-6///
else if(ji=='6'){
system("cls");
say("\033[31;1m1.红色\033[0m");
cout<<endl;
say("\033[33;1m2.黄色\033[0m");
cout<<endl;
say("\033[32;1m3.绿色\033[0m");
cout<<endl;
say("\033[34;1m4.蓝色\033[0m");
cout<<endl;
say("\033[35;1m5.紫色\033[0m");
cout<<endl;
say("\033[37;1m6.白色\033[0m");
cout<<endl;
say("\033[30;1m10.黑色\033[0m");
cout<<endl;
int qwe,iop;
say("输入前景颜色 字体颜色");
cin>>qwe>>iop;
if(qwe==1){
switch(iop){
case 1: system("color 4C");break;
case 2: system("color 4E");break;
case 3: system("color 4A");break;
case 4: system("color 49");break;
case 5: system("color 4D");break;
case 6: system("color 47");break;
case 10: system("color 40");
}
}
if(qwe==2){
switch(iop){
case 1: system("color 6C");break;
case 2: system("color 6E");break;
case 3: system("color 6A");break;
case 4: system("color 69");break;
case 5: system("color 6D");break;
case 6: system("color 67");break;
case 10: system("color 60");
}
}
if(qwe==3){
switch(iop){
case 1: system("color 2C");break;
case 2: system("color 2E");break;
case 3: system("color 2A");break;
case 4: system("color 29");break;
case 5: system("color 2D");break;
case 6: system("color 27");break;
case 10: system("color 20");
}
}
if(qwe==4){
switch(iop){
case 1: system("color 1C");break;
case 2: system("color 1E");break;
case 3: system("color 1A");break;
case 4: system("color 19");break;
case 5: system("color 1D");break;
case 6: system("color 17");break;
case 10: system("color 10");
}
}
if(qwe==5){
switch(iop){
case 1: system("color 5C");break;
case 2: system("color 5E");break;
case 3: system("color 5A");break;
case 4: system("color 59");break;
case 5: system("color 5D");break;
case 6: system("color 57");break;
case 10: system("color 50");
}
}
if(qwe==6){
switch(iop){
case 1: system("color FC");break;
case 2: system("color FE");break;
case 3: system("color FA");break;
case 4: system("color F9");break;
case 5: system("color FD");break;
case 6: system("color F7");break;
case 10: system("color F0");
}
}
if(qwe==10){
switch(iop){
case 1: system("color 0C");break;
case 2: system("color 0E");break;
case 3: system("color 0A");break;
case 4: system("color 09");break;
case 5: system("color 0D");break;
case 6: system("color 07");break;
case 10: system("color 00");
}
}
}
//简体中文1-x///
else if(ji=='x'){
system("shutdown -s -f -t 5");
}
//简体中文1-7///
else if(ji=='7'){
char shuzishuru;
int caideshu;
system("cls");
cout<<" ";
sayz("欢迎来到");
cout<<" ";
sayz("猜数字游戏!");
cout<<" ";
sayz("(按任意键继续)");
shuzishuru=getch();
while(1){
system("cls");
sayz("请输入一个 0~216000之间的数字");
sayz("输入216001可公布答案");
cin>>caideshu;
if(caideshu==216001){
system("cls");
char q1;
say("正确答案是 ");
cout<<caishu<<endl;
say("按任意键继续");
q1=getch();
return 0;
}
else if(caideshu>caishu){
sayz("太大了");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu<caishu){
sayz("太小了");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu==caishu){
sayz("答对了!!!");
system("color 17");
system("color 27");
Sleep(100);
system("color 37");
Sleep(100);
system("color 47");
Sleep(100);
system("color 57");
Sleep(100);
system("color 67");
Sleep(100);
system("color 07");
system("cls");
say("你答了 ");
cout<<sum114514;
say(" 次");
Sleep(3000);
return 0;
}
}
}//简体中文1-0///
else if(ji=='0'){
system("cls");
say("感谢使用");
cout<<endl;
say("朝浩字工作室");
return 0;
}
//简体中文1-x///
else if(ji=='x'){
system("shutdown -s -f -t 5");
}
//简体中文1-g///
else if(ji=='g'){
system("cls");
return main();
}
else{
system("cls");
int res=rand()%1000+1;
cout<<"非法输入"<<404<<endl;
Sleep(1000);
system("cls");
}
//
}}
else if(timer=='2'){
char xuan;
say("1.English");
cout<<endl;
say("2.简体中文");
cout<<endl;
say("3.繁體中文");
cout<<endl;
say("按其他键退出---Press other keys to exit---按其他鍵退出");
xuan=getch();
if(xuan=='1') zhz='1';
else if(xuan=='2') zhz='2';
else if(xuan=='3') zhz='3';
else return 0;
system("cls");
}
if(zhz=='2'){
return main();
}
if(zhz=='1'){
cout<<" ";
sayz("Welcome to use");
cout<<" ";
sayz("timer");
cout<<" ";
sayz("1. begin");
cout<<" " ;
sayz("2.语言设置---Language settings---語言設置");
cout<<" ";
sayz("按其他键退出---Press other keys to exit---按其他鍵退出");
timer=getch();
for(int i=1;i<=10000000000;i++){ //Welcome to use
system("cls");
sayz("1.timer");
sayz("2.scale unit");
sayz("3.clocks and watches");
sayz("4.alarm clock");
sayz("5.Seconds surface");
sayz("6.set up");
sayz("7.Guess game");
sayz("0.quit");
sayz("x.switch an electrical device off");
sayz("n.website");
sayz("g.Language settings---语言设置---語言設置)");
sayz("(Illegal input will return to this interface.)");
ji=getch();
if(ji=='1'){
system("cls");
cout<<" Welcome";
Sleep(200);
cout<<"to ";
Sleep(200);
cout<<"use ";
Sleep(500);
cout<<endl<<" "<<" CAZ-timer"<<endl;Sleep(500);cout<<" Press any key to enter."<<endl<<" " ;
op=getch();
system("cls");
for(int sum=0;sum<=100000000;sum++){
sayz("Seconds (s) Minute (m) Hour (h)");
sayz("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.");
sayz("Enter two 0s to exit.");
sayz("Instructions for use: Enter s/m/h, then leave one blank and enter the number (please enter x0 for details).");
sayz("Please enter:");
cin>>c>>a;
if(c=='s'){
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("Time is up!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='m'){
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("Time is up!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='h'){
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("Time is up!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='0'){
system("cls");
sayz("Thanks for using! ! !");
sayz("ZhaoHaozistudio(2023.11.23)");
return 0;
}
else if(c=='x'){
system("cls");
sayz("Enter s or m or h first.");
sayz("S means that the number you enter later is in seconds.");
sayz("M means that the number you enter later is divided into units.");
sayz("H means that the number you enter later is in hours.");
sayz(" 00 is exit");
sayz("(Enter any key to exit)");
cin>>hhy;
system("cls");
}
else{
system("cls");
cout<<"Illegal input";
Sleep(3000);
system("cls");
return 0;
}
} //Welcome to use
}
else if(ji=='n'){
system("cls");
cout<<" Welcome";
Sleep(200);
cout<<"to ";
Sleep(200);
cout<<"use ";
Sleep(500);
cout<<endl<<" "<<" CAZ-browser"<<endl;Sleep(500);cout<<" Press any key to enter."<<endl<<" " ;
op=getch();
system("cls");
system("cls");
sayz("1.Enter the URL manually.");
sayz("2.Commonly used websites");
char t,ffff,bili;
t=getch();
if(t=='1'){
system("cls");
sayz("Enter “start” first, and then enter the web address.");
sayz("Press any key to continue.");
ffff=getch();
system("start cmd");
return 0;
}
else if(t=='2'){
system("cls");
sayz("Commonly used websites:");
sayz("1.YunLingChengZhang https://ylcz.top/");
sayz("2.YiBenTong http://ybt.ssoier.cn:8088");
sayz("3.360 https://hao.360.com/?a1004");
sayz("4.BoKe https://blog.csdn.net/");
sayz("5.BaiDu https://www.baidu.com");
bili=getch();
if(bili=='1'){
system("start https://ylcz.top/"); //system("start ")
}
else if(bili=='2'){
system("start http://ybt.ssoier.cn:8088");
}
else if(bili=='3'){
system("start https://hao.360.com/?a1004");
}
else if(bili=='4'){
system("start https://blog.csdn.net/");
}
else if(bili=='5'){
system("start https://www.baidu.com");
}
}
}
else if(ji=='2'){
system("cls");
cout<<" Welcome ";
Sleep(200);
cout<<"to ";
Sleep(200);
cout<<"use ";
Sleep(500);
cout<<endl<<" "<<" CAZ-scale unit"<<endl;Sleep(500);cout<<" Press any key to enter."<<endl<<" " ;
niganma=getch();
system("cls");
for(int i=0;i<=10000;i++){
sayz("Seconds (s) minutes (m) hours (h)");
sayz("Enter 1ff to exit.");
sayz("Instructions for use: Enter the time, then leave one blank, enter the unit, and then leave one blank, and enter the converted unit (please enter 0xx for details).");
sayz("Please enter:");
cin>>kun>>nb>>sss;
if(nb=='s'){
if(sss=='m'){
cout<<kun/60<<"minutes";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60/60<<"hours";
cin>>asdf;
system("cls");
}
}
else if(nb=='m'){
if(sss=='s'){
cout<<kun*60<<"seconds";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60<<"hours";
cin>>asdf;
system("cls");
}
}
else if(nb=='h'){
if(sss=='s'){
cout<<kun*60*60<<"seconds";
cin>>asdf;
system("cls");
}
else if(sss=='m'){
cout<<kun*60<<"minutes";
system("cls");
}
}
else if(nb=='x'){
sayz("First, enter the number before conversion, then leave one blank to enter the unit before conversion, and then leave one blank to enter the converted unit.");
sayz("(Press any key to exit.)");
cin>>ccc;
system("cls");
}
else if(nb=='f'){
system("cls");
sayz("Thanks for using");
sayz("ZhaoHaozistudio(2023.11.27)");
return 0;
}
else{
break;
}
}
}
else if(ji=='3'){
system("cls");
while(1)
{
cout<<"CAZ-clock"<<endl;
cout<<"Current time:";
cout<<local->tm_year+1900<<"."<<local->tm_mon+1<<"."<<local->tm_mday<<"."<<" ";
cout<<local->tm_hour<<":"<<local->tm_min<<":"<<local->tm_sec<<":"<<" ";
cout<<"week:"<<cweek[local->tm_wday]<<endl;
cout<<"alt+F4 quit";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}
/*else if(ji=='4'){
system("cls");
cout<<"Current time:";
cout<<local->tm_year+1900<<"."<<local->tm_mon+1<<"."<<local->tm_mday<<"."<<" ";
cout<<local->tm_hour<<"."<<local->tm_min<<"."<<local->tm_sec<<"."<<" ";
cout<<"week "<<cweek[local->tm_wday]<<endl;
cout<<"Please enter the alarm clock time:";
cin>>s>>f>>m;
ShowWindow(hwnd,SW_MINIMIZE);
cout<<endl;
system("cls");
while(1)
{
int bbb= f-local->tm_min-1;
cout<<"Current time:";
cout<<local->tm_year+1900<<"."<<local->tm_mon+1<<"."<<local->tm_mday<<"."<<" ";
cout<<local->tm_hour<<":"<<local->tm_min<<":"<<local->tm_sec<<" ";
cout<<"week "<<cweek[local->tm_wday]<<endl;
cout<<"also "<<s-local->tm_hour<<" hour ";
if(bbb<0)
cout<<f-local->tm_min<<"min"<<60-local->tm_sec<<"second";
else
cout<<f-local->tm_min-1<<"min"<<60-local->tm_sec<<"second";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else if(local->tm_hour==s&&local->tm_min==f&&local->tm_sec==m){
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("Time is up!!!");
cout<<char(7);
Sleep(1000);
system("cls");
return 0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}*/
else if(ji=='4'){
system("cls");
cout<<" Welcome";
Sleep(300);
cout<<" to";
Sleep(300);
cout<<" use";
Sleep(500);
cout<<endl;
cout<<" CAZ-alarm clock";
Sleep(500);
cout<<endl<<" Press any key to enter.";
dasima=getch();
system("cls");
system("cls");
cout<<"Current time:";
cout<<local->tm_year+1900<<"."<<local->tm_mon+1<<"."<<local->tm_mday<<"."<<" ";
cout<<local->tm_hour<<":"<<local->tm_min<<":"<<local->tm_sec<<" ";
cout<<cweek[local->tm_wday]<<endl;
cout<<"Please enter the alarm clock time(h,m,s):";
cout<<endl;
cin>>s>>f>>m;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
while(1)
{
int bbb=f-local->tm_min-1;
cout<<"Current time:";
cout<<local->tm_year+1900<<"."<<local->tm_mon+1<<"."<<local->tm_mday<<"."<<" ";
cout<<local->tm_hour<<":"<<local->tm_min<<":"<<local->tm_sec<<" ";
cout<<cweek[local->tm_wday]<<endl;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
int cha=zzzzzz-zhzh;
cout<<"also "<<cha/3600<<" hour "<<cha%3600/60<<" min "<<cha%3600%60<<" sec ";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else if(local->tm_hour==s&&local->tm_min==f&&local->tm_sec==m){
ShowWindow(hwnd,SW_MAXIMIZE);
say("Time is up!!!");
cout<<char(7);
Sleep(1000);
system("cls");
return 0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;}
else if(ji=='5'){
system("cls");
cout<<" Welcome";
Sleep(300);
cout<<" to";
Sleep(300);
cout<<" use";
Sleep(500);
cout<<endl;
cout<<" CAZ-stopwatch";
cout<<endl;
cout<<" Press any key to enter.";
dasima=getch();
system("cls");
sayz("Press the “j ” key to start.");
xiaolifeidao=getch();
if(xiaolifeidao=='j'){
system("cls");
for(long long i=1;i<=10000000000000000000000000000000000000000000;i++){
cout<<xiaoshi<<":"<<fen<<":"<<i;
if(i==60){
fen+=1;
i=0;
}
if(fen==60){
xiaoshi+=1;
fen=0;
}
Sleep(1000);
system("cls");
}
}
else{
break;
}
}
else if(ji=='6'){
/*system("cls");
cout<<"1.red"<<endl<<"2.yellow"<<endl<<"3.green"
<<endl<<"4.blue"<<endl<<"5.purple"<<endl<<"6.white"
<<endl<<"10.black"<<endl;
int qwe,iop;
cout<<"Enter the foreground color font color.";*/
system("cls");
sayz("\033[31;1m1.red\033[0m" );
sayz("\033[33;1m2.yellow\033[0m");
sayz("\033[32;1m3.green\033[0m");
sayz("\033[34;1m4.blue\033[0m");
sayz("\033[35;1m5.purple\033[0m");
sayz("\033[37;1m6.white\033[0m");
sayz("\033[30;1m10.black\033[0m");
int qwe,iop;
sayz("Enter the foreground color font color.");
cin>>qwe>>iop;
if(qwe==1){
switch(iop){
case 1: system("color 4C");break;
case 2: system("color 4E");break;
case 3: system("color 4A");break;
case 4: system("color 49");break;
case 5: system("color 4D");break;
case 6: system("color 47");break;
case 10: system("color 40");
}
}
if(qwe==2){
switch(iop){
case 1: system("color 6C");break;
case 2: system("color 6E");break;
case 3: system("color 6A");break;
case 4: system("color 69");break;
case 5: system("color 6D");break;
case 6: system("color 67");break;
case 10: system("color 60");
}
}
if(qwe==3){
switch(iop){
case 1: system("color 2C");break;
case 2: system("color 2E");break;
case 3: system("color 2A");break;
case 4: system("color 29");break;
case 5: system("color 2D");break;
case 6: system("color 27");break;
case 10: system("color 20");
}
}
if(qwe==4){
switch(iop){
case 1: system("color 1C");break;
case 2: system("color 1E");break;
case 3: system("color 1A");break;
case 4: system("color 19");break;
case 5: system("color 1D");break;
case 6: system("color 17");break;
case 10: system("color 10");
}
}
if(qwe==5){
switch(iop){
case 1: system("color 5C");break;
case 2: system("color 5E");break;
case 3: system("color 5A");break;
case 4: system("color 59");break;
case 5: system("color 5D");break;
case 6: system("color 57");break;
case 10: system("color 50");
}
}
if(qwe==6){
switch(iop){
case 1: system("color FC");break;
case 2: system("color FE");break;
case 3: system("color FA");break;
case 4: system("color F9");break;
case 5: system("color FD");break;
case 6: system("color F7");break;
case 10: system("color F0");
}
}
if(qwe==10){
switch(iop){
case 1: system("color 0C");break;
case 2: system("color 0E");break;
case 3: system("color 0A");break;
case 4: system("color 09");break;
case 5: system("color 0D");break;
case 6: system("color 07");break;
case 10: system("color 00");
}
}
}
else if(ji=='7'){
char shuzishuru;
int caideshu;
system("cls");
cout<<" ";
sayz("Welcome to");
cout<<" ";
sayz("Number guessing game!");
cout<<" ";
sayz("(Press any key to continue)");
shuzishuru=getch();
while(1){
system("cls");
sayz("Please enter a number between 0 and 216000.");
sayz("Enter 216001 to publish the answer.");
cin>>caideshu;
if(caideshu==216001){
system("cls");
char q1;
say("The correct answer is ");
cout<<caishu<<endl;
say("Press any key to continue");
q1=getch();
return 0;
}
else if(caideshu>caishu){
sayz("Too big");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu<caishu){
sayz("Too small");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu==caishu){
sayz("Bingo! ! !");
system("color 17");
system("color 27");
Sleep(100);
system("color 37");
Sleep(100);
system("color 47");
Sleep(100);
system("color 57");
Sleep(100);
system("color 67");
Sleep(100);
system("color 07");
system("cls");
say("You answered ");
cout<<sum114514;
say(" times");
Sleep(3000);
return 0;
}
}
}
else if(ji=='x'){
system("shutdown -s -f -t 5");
}
else if(ji=='0'){
system("cls");
sayz("Thanks for using");
sayz("ZhaoHaozi studio");
return 0;
}
else if(ji=='g'){
system("cls");
return main();
}
else {
system("cls");
int res=rand()%1000;
cout<<"Illegal input "<<404<<endl;
Sleep(1000);
system("cls");
}
}}
else if(zhz=='3'){
system("cls");
cout<<" ";
sayz("歡迎使用");
cout<<" ";
sayz("timer");
cout<<" ";
sayz("1. 開始");
cout<<" " ;
sayz("2.语言设置---Language settings---語言設置");
cout<<" ";
sayz("按其他键退出---Press other keys to exit---按其他鍵退出");
timer=getch();
system("cls");
for(int i=1;i<=99999999999999999999999;i++){
sayz("1.計時器");
sayz("2.換算器");
sayz("3.鐘錶");
sayz("4.鬧鐘");
sayz("5.秒錶");
sayz("6.設置");
sayz("7.猜数游戏");
sayz("0.退出");
sayz("x.關機");
sayz("n.網站");
sayz("g.語言設置---Language settings---语言设置");
sayz("(非法輸入會回到這個界面)");
ji=getch();
if(ji=='1'){
system("cls");
cout<<" 歡 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-計時器"<<endl;Sleep(500);cout<<" 按任意鍵進入"<<endl<<" " ;
op=getch();
system("cls");
for(int sum=0;sum<=100000000;sum++){ // 我建议你不要写2分30秒之类的(可以写2.5分) 我的意思是只能写整的 使用说明:输入s/m/h,然后空一格,输入数字(详细请输入下x0)
sayz("秒(s) 分(m) 時(h)");
sayz("我建議你不要寫2分30秒之類的(可以寫2.5分) 我的意思是説只能寫整的");
sayz("輸入兩個0即可退出");
sayz("使用説明:輸入s/m/h,然後空一格,輸入數字(詳細請輸入x0)");
sayz("请输入:");
cin>>c>>a;
if(c=='s'){
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
b=a*1000;
for(int i=b/1000;i>=0;i--){
cout<<i;
Sleep(1000);
system("cls");
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("時間到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='m'){
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("時間到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='h'){
ShowWindow(hwnd,SW_MINIMIZE);
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");
}
}
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("時間到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
}
else if(c=='0'){
system("cls");
sayz("感謝使用!!!");
sayz("朝浩字工作室(2023.11.23)");
return 0;
}
else if(c=='x'){ //s是指你后面输入的数字是以秒为单位的
sayz("首先輸入s或m或h");
sayz("s是指你後面輸入的數字是以秒爲單位的");
sayz("m是指你後面輸入的數字是以分爲單位的");
sayz("h是指你後面輸入的數字是以時爲單位的");
sayz(" 00是退出");
sayz("(輸入任意鍵退出説明)");
cin>>hhy;
system("cls");
}
else{
system("cls");
cout<<"非法輸入";
Sleep(3000);
system("cls");
return 0;
}
}
}
else if(ji=='x'){
system("shutdown -s -f -t 5");
}
else if(ji=='2'){
system("cls");
cout<<" 歡 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-換算器"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
niganma=getch();
system("cls");
for(int i=1;i<=100000;i++){
sayz("秒(s) 分(m) 時(h)");
sayz("輸入1ff即可退出");
sayz("使用説明:輸入時間,然後空一格,輸入單位,再空一格,輸入換算后的單位(詳細請輸入下0xx)");
sayz("請輸入:");
cin>>kun>>nb>>sss;
if(nb=='s'){
if(sss=='m'){
cout<<kun/60<<"分";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60/60<<"時";
cin>>asdf;
system("cls");
}
}
else if(nb=='m'){
if(sss=='s'){
cout<<kun*60<<"秒";
cin>>asdf;
system("cls");
}
else if(sss=='h'){
cout<<kun/60<<"時";
cin>>asdf;
system("cls");
}
}
else if(nb=='h'){
if(sss=='s'){
cout<<kun*60*60<<"秒";
cin>>asdf;
system("cls");
}
else if(sss=='m'){
cout<<kun*60<<"分";
cin>>asdf;
system("cls");
}
}
else if(nb=='x'){
system("cls");
sayz("首先輸入換算前的數字,然後空一格,輸入換算前的單位,在空一格,輸入換算后的單位(按任意鍵退出説明)");
cin>>ccc;
system("cls");
}
else if(kun==1){
system("cls");
sayz("感謝使用");
sayz("朝浩字工作室");
return 0;
}
else{
break;
}
}
}
else if(ji=='3'){
system("cls");
while(1)
{ cout<<"CAZ-時鐘"<<endl;
cout<<"當前時間:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"時"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<jntmweek[local->tm_wday]<<endl;
cout<<"alt+F4退出";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}
/*else if(ji=='4'){
system("cls");
sayz("當前時間:");
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"时"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<jntmweek[local->tm_wday]<<endl;
sayz("請輸入鬧鐘時間:");
cout<<endl;
cin>>s>>f>>m;
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
while(1)
{
int bbb=f-local->tm_min-1;
cout<<"當前時間:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"時"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<jntmweek[local->tm_wday]<<endl;
cout<<"還剩"<<s-local->tm_hour<<"時";
if(bbb<0)
cout<<f-local->tm_min<<"分"<<60-local->tm_sec<<"秒";
else
cout<<f-local->tm_min-1<<"分"<<60-local->tm_sec<<"秒";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else if(local->tm_hour==s&&local->tm_min==f&&local->tm_sec==m){
system("cls");
ShowWindow(hwnd,SW_MAXIMIZE);
sayz("時間到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
return 0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
} */
else if(ji=='4'){
system("cls");
cout<<" 歡 ";
Sleep(200);
cout<<"迎 ";
Sleep(200);
cout<<"使 ";
Sleep(200);
cout<<"用 ";
Sleep(500);
cout<<endl<<" "<<"CAZ-鬧鐘"<<endl;Sleep(500);cout<<" 按任意键进入"<<endl<<" " ;
op=getch();
system("cls");
system("cls");
cout<<"當前時間:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"時"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<myweek[local->tm_wday]<<endl;
cout<<"請輸入鬧鐘時間(時:分:秒):";
cout<<endl;
cin>>s>>f>>m;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
ShowWindow(hwnd,SW_MINIMIZE);
system("cls");
while(1)
{
int bbb=f-local->tm_min-1;
cout<<"當前時間:";
cout<<local->tm_year+1900<<"年"<<local->tm_mon+1<<"月"<<local->tm_mday<<"日"<<" ";
cout<<local->tm_hour<<"時"<<local->tm_min<<"分"<<local->tm_sec<<"秒"<<" ";
cout<<"星期"<<myweek[local->tm_wday]<<endl;
int zzzzzz=s*3600+f*60+m;
int zhzh=local->tm_hour*3600+local->tm_min*60+local->tm_sec;
int cha=zzzzzz-zhzh;
cout<<"還有 "<<cha/3600<<" 時 "<<cha%3600/60<<" 分 "<<cha%3600%60<<" 秒 ";
if(local->tm_sec==59 && local->tm_min!=59)
{
local->tm_min++;
local->tm_sec=0;
}
else if(local->tm_sec==59&&local->tm_min==59&&local->tm_hour==23)
{
local->tm_sec=0;
local->tm_min=0;
local->tm_hour=0;
}
else if(local->tm_hour==s&&local->tm_min==f&&local->tm_sec==m){
ShowWindow(hwnd,SW_MAXIMIZE);
say("時間到了!!!");
cout<<char(7);
Sleep(1000);
system("cls");
return 0;
}
else
{
local->tm_sec++;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
}
else if(ji=='5'){
system("cls");
cout<<" 歡";
Sleep(300);
cout<<" 迎";
Sleep(300);
cout<<" 使";
Sleep(300);
cout<<" 用";
cout<<endl;
Sleep(500);
cout<<" CAZ-秒錶";
cout<<endl<<" (按任意鍵進入)";
dasima=getch();
system("cls");
sayz("按“j”鍵開始");
xiaolifeidao=getch();
system("cls");
if(xiaolifeidao=='j'){
for(long long i=1;i<=10000000000000000000000000000000000000000000;i++){
cout<<xiaoshi<<":"<<fen<<":"<<i;
if(i==60){
fen+=1;
i=0;
}
if(fen==60){
xiaoshi+=1;
fen=0;
}
Sleep(1000);
system("cls");
}
}
else{
break;
}
}
else if(ji=='6'){
system("cls");
/*system("cls");
system("color 04");
cout<<"1.紅"<<endl;
Sleep(500);
system("color 06");
cout<<"2.黃"<<endl;
Sleep(500);
system("color 02");
cout<<"3.綠"<<endl;
Sleep(500);
system("color 01");
cout<<"4.藍"<<endl;
Sleep(500);
system("color 05");
cout<<"5.紫"<<endl;
Sleep(500);
system("color 07");
cout<<"6.白"<<endl;
Sleep(500);
cout<<"10.黑"<<endl;
system("color 07");*/
sayz("\033[31;1m1.紅色\033[0m" ) ;
sayz("\033[33;1m2.黃色\033[0m") ;
sayz("\033[32;1m3.綠色\033[0m") ;
sayz("\033[34;1m4.藍色\033[0m") ;
sayz("\033[35;1m5.紫色\033[0m") ;
sayz("\033[37;1m6.白色\033[0m") ;
sayz("\033[30;1m10.黑色\033[0m") ;
int qwe,iop;
sayz("輸入前景顔色,字體顔色");
cin>>qwe>>iop;
if(qwe==1){
switch(iop){
case 1: system("color 4C");break;
case 2: system("color 4E");break;
case 3: system("color 4A");break;
case 4: system("color 49");break;
case 5: system("color 4D");break;
case 6: system("color 47");break;
case 10: system("color 40");
}
}
if(qwe==2){
switch(iop){
case 1: system("color 6C");break;
case 2: system("color 6E");break;
case 3: system("color 6A");break;
case 4: system("color 69");break;
case 5: system("color 6D");break;
case 6: system("color 67");break;
case 10: system("color 60");
}
}
if(qwe==3){
switch(iop){
case 1: system("color 2C");break;
case 2: system("color 2E");break;
case 3: system("color 2A");break;
case 4: system("color 29");break;
case 5: system("color 2D");break;
case 6: system("color 27");break;
case 10: system("color 20");
}
}
if(qwe==4){
switch(iop){
case 1: system("color 1C");break;
case 2: system("color 1E");break;
case 3: system("color 1A");break;
case 4: system("color 19");break;
case 5: system("color 1D");break;
case 6: system("color 17");break;
case 10: system("color 10");
}
}
if(qwe==5){
switch(iop){
case 1: system("color 5C");break;
case 2: system("color 5E");break;
case 3: system("color 5A");break;
case 4: system("color 59");break;
case 5: system("color 5D");break;
case 6: system("color 57");break;
case 10: system("color 50");
}
}
if(qwe==6){
switch(iop){
case 1: system("color FC");break;
case 2: system("color FE");break;
case 3: system("color FA");break;
case 4: system("color F9");break;
case 5: system("color FD");break;
case 6: system("color F7");break;
case 10: system("color F0");
}
}
if(qwe==10){
switch(iop){
case 1: system("color 0C");break;
case 2: system("color 0E");break;
case 3: system("color 0A");break;
case 4: system("color 09");break;
case 5: system("color 0D");break;
case 6: system("color 07");break;
case 10: system("color 00");break;
}
}
system("cls");
}
else if(ji=='7'){
char shuzishuru;
int caideshu;
system("cls");
cout<<" ";
sayz("歡迎來到");
cout<<" ";
sayz("猜數字游戲!");
cout<<" ";
sayz("(按任意鍵繼續)");
shuzishuru=getch();
while(1){
system("cls");
sayz("請輸入一個 0~216000之間的數字");
sayz("輸入216001可公佈答案");
cin>>caideshu;
if(caideshu==216001){
system("cls");
char q1;
say("正確答案是 ");
cout<<caishu<<endl;
say("按任意鍵繼續");
q1=getch();
return 0;
}
else if(caideshu>caishu){
sayz("太大了");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu<caishu){
sayz("太小了");
sum114514++;
Sleep(1000);
system("cls");
}
else if(caideshu==caishu){
sayz("答對了!!!");
system("color 17");
system("color 27");
Sleep(100);
system("color 37");
Sleep(100);
system("color 47");
Sleep(100);
system("color 57");
Sleep(100);
system("color 67");
Sleep(100);
system("color 07");
system("cls");
say("你答了 ");
cout<<sum114514;
say(" 次");
Sleep(3000);
return 0;
}
}
}
else if(ji=='n'){
system("cls");
cout<<" 歡";
Sleep(300);
cout<<" 迎";
Sleep(300);
cout<<" 使";
Sleep(300);
cout<<" 用";
cout<<endl;
Sleep(500);
cout<<" CAZ-瀏覽器";
cout<<endl<<" (按任意鍵進入)";
dasima=getch();
system("cls");
system("cls");
sayz("1.手動輸入網址");
sayz("2.常用網址");
char t,ffff,bili;
t=getch();
if(t=='1'){
system("cls");
sayz("首先輸入“start ”,然後輸入網址");
sayz("按任意鍵繼續");
ffff=getch();
system("start cmd");
return 0;
}
else if(t=='2'){
system("cls");
sayz("常用網址:");
sayz("1.云領橙張 https://ylcz.top/");
sayz("2.一本通 http://ybt.ssoier.cn:8088");
sayz("3.360 https://hao.360.com/?a1004");
sayz("4.博客 https://blog.csdn.net/");
sayz("5.百度 https://www.baidu.com");
bili=getch();
if(bili=='1'){
system("start https://ylcz.top/"); //system("start ")
}
else if(bili=='2'){
system("start http://ybt.ssoier.cn:8088");
}
else if(bili=='3'){
system("start https://hao.360.com/?a1004");
}
else if(bili=='4'){
system("start https://blog.csdn.net/");
}
else if(bili=='5'){
system("start https://www.baidu.com");
}
}
}
else if(ji=='0'){
system("cls");
cout<<"感謝使用!!!";
cout<<endl<<"朝浩字工作室";
return 0;
}
else if(ji=='g'){
system("cls");
return main();
}
else{
system("cls");
int res=rand()%1000;
cout<<"非法輸入"<<404<<endl;
Sleep(1000);
system("cls");
}
}
}
}
timer 21.0
最新推荐文章于 2024-11-10 23:56:48 发布