//
//Created by Carlgood.
//
//Note:This program is written in version DEV-C++ 5.11.
# include<iostream>
# include<cmath>
# include<string>
# include<ctime>
# include<cstring>
# include<cstdio>
# include<algorithm>
# include<sstream>
# include<vector>
# include<windows.h>
# include<conio.h>
# define This_program_is_written_by_Carlgood_Programming_Studio 9876543210
using namespace std;
bool cha;
void slowout(char *p)
{
while(1)
{
if(*p!=0)
{
printf("%c",*p++);
}
else
{
break;
}
Sleep(22);
}
}
void tt()
{
string txt;
int i,j,sum=49;
int x=30;
int y=10;
int TOP=1;
int Bottom=10;
int Left=0;
int Right=111;
int speed_x=1;
int speed_y=1;
while(sum)
{
sum--;
if(y>Bottom||y<TOP)
{
speed_y=-speed_y;
}
if(x<Left||x>Right)
{
speed_x=-speed_x;
}
x=x-speed_x;
y=y-speed_y;
system("cls");
for(j=0;j<=y;j++)
{
printf("\n");
}
for(i=0;i<=x;i++)
{
printf(" ");
}
printf("C.G.P.S\n");
Sleep(1);
}
cout<<endl;
slowout(" **** **** **** ***");
cout<<endl;
slowout(" * * * * * ");
cout<<endl;
slowout(" * ****** **** ***");
cout<<endl;
slowout(" * * ** * *");
cout<<endl;
slowout(" **** * *** * * * * ***");
cout<<endl;
slowout("___________________________________________");
cout<<endl;
slowout(" * *");
cout<<endl;
slowout(" * *");
cout<<endl;
slowout(" *** *** **** *** ****");
cout<<endl;
slowout(" * * * * * * * * * *");
cout<<endl;
slowout(" *** *** ***** * ****");
cout<<endl;
Sleep(2345);
system("cls");
}
int colour()
{
system("cls");
system("color 17");
cout<<"0=黑色 1=蓝色 2=绿色 3=浅绿色 4=红色 5=紫色 6=黄色 7=白色 8=灰色 9=淡黑色 A=淡蓝色 B=淡浅绿色 C=淡红色 D=淡紫色 E=淡黄色 F=亮白色";
cout<<endl;
char a,b;
cout<<"背景颜色:";
cin>>a;
cout<<"文字颜色:";
cin>>b;
srand(time(0));
int time=rand()%3000+1;
cout<<"调色中......\n预计还剩:"<<time*1.0/1000<<"秒";
Sleep(time);
if(a=='0'&&b=='0') system("color 00");
else if(a=='0'&&b=='1') system("color 01");
else if(a=='0'&&b=='2') system("color 02");
else if(a=='0'&&b=='3') system("color 03");
else if(a=='0'&&b=='4') system("color 04");
else if(a=='0'&&b=='5') system("color 05");
else if(a=='0'&&b=='6') system("color 06");
else if(a=='0'&&b=='7') system("color 07");
else if(a=='0'&&b=='8') system("color 08");
else if(a=='0'&&b=='9') system("color 09");
else if(a=='0'&&(b=='A'||b=='a')) system("color 0A");
else if(a=='0'&&(b=='B'||b=='b')) system("color 0B");
else if(a=='0'&&(b=='C'||b=='c')) system("color 0C");
else if(a=='0'&&(b=='D'||b=='d')) system("color 0D");
else if(a=='0'&&(b=='E'||b=='e')) system("color 0E");
else if(a=='0'&&(b=='F'||b=='f')) system("color 0F");
else if(a=='1'&&b=='0') system("color 10");
else if(a=='1'&&b=='1') system("color 11");
else if(a=='1'&&b=='2') system("color 12");
else if(a=='1'&&b=='3') system("color 13");
else if(a=='1'&&b=='4') system("color 14");
else if(a=='1'&&b=='5') system("color 15");
else if(a=='1'&&b=='6') system("color 16");
else if(a=='1'&&b=='7') system("color 17");
else if(a=='1'&&b=='8') system("color 18");
else if(a=='1'&&b=='9') system("color 19");
else if(a=='1'&&(b=='A'||b=='a')) system("color 1A");
else if(a=='1'&&(b=='B'||b=='b')) system("color 1B");
else if(a=='1'&&(b=='C'||b=='c')) system("color 1C");
else if(a=='1'&&(b=='D'||b=='d')) system("color 1D");
else if(a=='1'&&(b=='E'||b=='e')) system("color 1E");
else if(a=='1'&&(b=='F'||b=='f')) system("color 1F");
else if(a=='2'&&b=='0') system("color 20");
else if(a=='2'&&b=='1') system("color 21");
else if(a=='2'&&b=='2') system("color 22");
else if(a=='2'&&b=='3') system("color 23");
else if(a=='2'&&b=='4') system("color 24");
else if(a=='2'&&b=='5') system("color 25");
else if