Page 422 - C++
P. 422
rectangle(100+40*(ctr-i),150,140+40*(ctr-i),190);
delay(300);
}
setcolor(1);
for( j=0;j<3;j++)
{
setcolor(i+2);
rectangle(f+40*j,350,f+40*(j+1),390);
}
setcolor(1);
if(flag==0)
{
wrong();
}
flag=0;
temp=0;
settextstyle(5,0,2);
setcolor(0);
outtextxy(10,430,"ENTER THE LETTER AT SECOND POSITION: ");
setcolor(12);
outtextxy(10,430,"ENTER THE LETTER AT THIRD POSITION: ");
cin>>ch3;
ch3=toupper(ch3);
settextstyle(5,0,3);
for(i=0;i<10;i++)
{
if(str[i][0]==ch3)
{
flag=1;
for(int k=0;str[k][0]!=str[i][0];k++)
{
temp++;
}
if(temp>=temp1)
{
for(int j=0;j<120;j++)
{
setcolor(1);
outtextxy(110+40*i+j-j*(temp-temp1)/3,158+5*j/3,str[i]);
delay(10);
setcolor(0);
outtextxy(110+40*i+j-j*(temp-temp1)/3,158+5*j/3,str[i]);
delay(10);
}
setcolor(1);
outtextxy(110+40*i+j-j*(temp-temp1)/3,158+5*j/3,str[i]);
delay(10);
}
else
{
for(int j=0;j<120;j++)
{
setcolor(1);
outtextxy(110+40*i+j+j*(temp1-temp)/3,158+5*j/3,str[i]);