该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include
#include
#include
main()
{
char c;
int i,j,k,l,m,n,o;
int x,y;
char c1;
int a,b,d,e;
x=35;
y=8;
textcolor(13);
gotoxy(35,10),cprintf("photoshop2014");
textcolor(11);
gotoxy(20,11);cprintf(" My name is zhou cheng qiang");
gotoxy(20,12);cprintf("I very like The C prograunmming language");
gotoxy(20,13);cprintf(" I think it*s very interting");
gotoxy(20,14);cprintf(" My QQ is 746511902");
gotoxy(20,15);cprintf(" I want have a lot of friends");
for(j=10;j>=0;j--)
{ textcolor(14);
gotoxy(60,20);cprintf("Please wait %ds ",j);
sleep(1);
}
clrscr();
gotoxy(1,10);
for(i=0;i<=50;i++)
{
delay(100);
gotoxy(i,10);
cprintf("%c",219);
gotoxy(i+2,10);
cprintf(" %c%d",37,i*2);
}
sleep(1);
clrscr();
textcolor(WHITE);
for(a=0;a<=53;a++)
{
gotoxy(21+a,3);cprintf("_");
}
for(a=0;a<=55;a++)
{
gotoxy(20+a,23);cprintf("_");
}
for(a=0;a<=19;a++)
{
gotoxy(20,4+a);cprintf("|");
}
for(a=0;a<=19;a++)
{
gotoxy(75,4+a);cprintf("|");
}
textcolor(11);
gotoxy(40,2),cprintf("photoshop2014");
textcolor(14);
gotoxy(1,3);cprintf("Use color:");
textcolor(10);
gotoxy(1,4),cprintf("1:LIGHTGREEN");
textcolor(11);
gotoxy(1,5),cprintf("2:LIGHTCYAN");
textcolor(12);
gotoxy(1,6),cprintf("3:LIGHTRED");
textcolor(13);
gotoxy(1,7);cprintf("4:LIGHTMAGENTA");
textcolor(14);
gotoxy(1,8);cprintf("5:YELLOW");
textcolor(15);
gotoxy(1,9);cprintf("6:WHITE");
textcolor(7);
gotoxy(1,10);cprintf("7:LIGHTGAY");
textcolor(4);
gotoxy(1,11);cprintf("8:RED");
textcolor(2);
gotoxy(1,12);cprintf("9:GREEN");
textcolor(14);
gotoxy(65,25);cprintf("Exit input Esc\n");
gotoxy(1,25);cprintf("\rClrscr input 0");
textcolor(15);
gotoxy(35,8);
for(;;)
{
lab:
if((x!=21&&x!=74)&&(y!=4&&y!=22))
{
c=getch();
if(c==72)
y--;
else if(c==80)
y++;
else if(c==75)
x--;
else if(c==77)
x++;
else if(c>=32&&c<=47||c>=97&&c<=126||c>=58&&c<=64)
cprintf("%c",c),x++;
else if(c>=65&&c<=71||c>=73&&c<=74||c>=78&&c<=79||c>=81&&c<96||c==76)
cprintf("%c",c),x++;
else if(c==13)
x=21,y++;
else if(c==8)
cprintf(" "),x--;
else if(c==49)
textcolor(10);
else if(c==50)
textcolor(11);
else if(c==51)
textcolor(12);
else if(c==52)
textcolor(13);
else if(c==53)
textcolor(14);
else if(c==54)
textcolor(15);
else if(c==55)
textcolor(7);
else if(c==56)
textcolor(4);
else if(c==57)
textcolor(2);
else if(c==48)
{
loop:
clrscr();
textcolor(11);
gotoxy(40,2),cprintf("photoshop2014");
textcolor(14);
gotoxy(1,3);cprintf("Use color:");
textcolor(10);
gotoxy(1,4),cprintf("1:LIGHTGREEN");
textcolor(11);
gotoxy(1,5),cprintf("2:LIGHTCYAN");
textcolor(12);
gotoxy(1,6),cprintf("3:LIGHTRED");
textcolor(13);
gotoxy(1,7);cprintf("4:LIGHTMAGENTA");
textcolor(14);
gotoxy(1,8);cprintf("5:YELLOW");
textcolor(15);
gotoxy(1,9);cprintf("6:WHITE");
textcolor(7);
gotoxy(1,10);cprintf("7:LIGHTGAY");
textcolor(4);
gotoxy(1,11);cprintf("8:RED");
textcolor(2);
gotoxy(1,12);cprintf("9:GREEN");
textcolor(14);
gotoxy(65,25);cprintf("Exit input Esc");
textcolor(WHITE);
for(a=0;a<=53;a++)
{
gotoxy(21+a,3);cprintf("_");
}
for(a=0;a<=55;a++)
{
gotoxy(20+a,23);cprintf("_");
}
for(a=0;a<=19;a++)
{
gotoxy(20,4+a);cprintf("|");
}
for(a=0;a<=19;a++)
{
gotoxy(75,4+a);cprintf("|");
}
}
else if(c==27)
{
textcolor(2);
gotoxy(35,10),cprintf("really Exit?Y or N:");
c1=getchar();
if(c1==121)
{
clrscr();
textcolor(LIGHTMAGENTA);
gotoxy(40,8);cprintf("Exiting");
for(k=0;k<=5;k++)
{
sleep(1);
cprintf(".");
}
sleep(1);
exit();
}
if(c1==110)
goto loop;
}
gotoxy(x,y);
}
else if(x==21)
x++;
else if(x==74)
x--;
else if(y==4)
y++;
else if(y==22)
{
y--;
}
goto lab;
}
}