cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
begineers
begineers
Feb 19, 2013 at 12:54pm UTC
Kishor naiknavare
(4)
I write a program in c language that name is rain drop character but one error occurs at time of execution in delay.
i use delay(4000) it's matter of heder file plz help me which header file i need to insert.
Feb 19, 2013 at 1:08pm UTC
MiiNiPaa
(8886)
What error exactly do you have? Post you code which invokes an error.
Feb 20, 2013 at 7:22am UTC
Kishor naiknavare
(4)
#include<conio.h>
#include<stdio.h>
main()
{
int p,x,y,z;
char one[20];
clrscr();
printf("\n Enter any Number");
scanf("%s",one);
clrscr();
x=29;
z=0;
while(one[z]!='\0')
{
x=x+1;
y=3;
for(p=1;p<=20;p++)
{
gotoxy(x,y);
printf("%c",one[z]);
delay(4000);
if(p!=20)
{
gotoxy(x,y);
printf(" ");
}
y++;
}
z++;
}
getch();
}
Topic archived. No new replies allowed.