Displaying Source Code(s)
|
|
Program of Falling Characters.
--------------------------------------------------------------------------------
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<string.h>
void main()
{
int i,j,l,t;
char y[20];
clrscr();
printf("Enter a string<BR>);
gotoxy(2,2);
gets(y);
l=strlen(y);
t=1;
for(j=0;j<l;j++,t++)
{
for(i=3;i<=24;i++)
{
clrscr();
puts(y);
gotoxy(t,i);
printf("%c",y[j]);
delay(100);
}
}
clrscr();
getch();
}
|
|
|