Welcome

Untitled

<br />#include<conio.h>
#include<iostream>
#include<windows.h>
#include<time.h>
void gotoxy (int x, int y)
{
COORD coord;
coord.X = x; coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
using namespace std;
int main()
{
x:
gotoxy(0,0);
int len;
char ch;
char str[]={"tt-Welcome to my Programming World:-"};
for(int i=10;i>0;i--)
{
if(i>=3)
{
cout<<"tttt"<<i;
Sleep(300);
system("cls");
}
else if(i==2)
{
cout<<"tttt"<<"Ready.!!";
Sleep(300);
system("cls");
}
else if(i==1)
{
cout<<"tttt"<<"Go..!!";
Sleep(200);
system("cls");
}
}
len=strlen(str);
for(int i=0;i<len;i++)
{
system("cls");
gotoxy(i+15,0);
cout<<str[i];
if(i%3==0)
{
cout<<"";
}
else if(i==0)
{
gotoxy(i+15,1);
cout<<"*";
}
else if(i==1)
{
gotoxy(i+15,2);
cout<<"*";
}
else if(i%2==0)
{
gotoxy(i+15,1);
cout<<"*";
}
else
{
gotoxy(i+15,2);
cout<<"*";
}
Sleep(50);
}
system("cls");
for(int i=0;i<len;i++)
{
gotoxy(i+15,0);
cout<<str[i];
if(i%3==0)
{
cout<<"";
}
else if(i==0)
{
gotoxy(i+15,1);
cout<<"*";
}
else if(i==1)
{
gotoxy(i+15,2);
cout<<"*";
}
else if(i%2==0)
{
gotoxy(i+15,1);
cout<<"*";
}
else
{
gotoxy(i+15,2);
cout<<"*";
}
}
Sleep(200);
gotoxy(15,4);
cout<>ch;
if(ch=='y' || ch=='Y' || ch=='n')
{
goto x;
}
else if(ch=='n' || ch=='N')
getch();
return 0;
}

Leave a comment