Muhammad Taimur Adil
unread,Jan 9, 2012, 1:08:33 PM1/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Learn C Language
run it in TC and tell me what you see
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<dos.h>
int blinkstar(void);
int main(){
clrscr();
textmode(BW40);
blinkstar();
getch();
return 0;
}
int blinkstar(void){
int i,x,y,n;
for(i=5000;i>=1;i--){
x=rand()%40;
y=rand()%40;
n=rand()%500;
gotoxy(x,y);
delay(5);
textattr(n);
cprintf(" ");
}
return 0;
}
Copy right 2012