Backup proyecto Joyfe - Borland
This commit is contained in:
39
CPP/PUNTERO.CPP
Normal file
39
CPP/PUNTERO.CPP
Normal file
@ -0,0 +1,39 @@
|
||||
#include<stdio.h>
|
||||
#include<conio.h>
|
||||
#include<dos.h>
|
||||
|
||||
void borrar(int pos_y);
|
||||
|
||||
void main(){
|
||||
int i=0,*p,tabla[10];int x,y;
|
||||
textcolor(7);textbackground(0);
|
||||
clrscr();
|
||||
for (i=0;i<10;i++)
|
||||
tabla[i]=i+1;
|
||||
for (i=0;i<10;i++){
|
||||
printf("\n Inizializaci<63>n de la cuenta atras... %2d",tabla[i]);delay(100);
|
||||
}
|
||||
printf("\n");
|
||||
p=&tabla[9];
|
||||
for (;p>=&tabla[0];p--){
|
||||
printf("\n Cuenta atras... %2d",*p);delay(1000);
|
||||
}
|
||||
printf("\n\n CERO, DESPEGUE");
|
||||
for (i=60;i>1;i--){
|
||||
printf(".");delay(i);
|
||||
if (i==50){
|
||||
x=wherex();y=wherey();
|
||||
gotoxy(3,25);textcolor(12+BLINK);cprintf("Lo perdemos, lo perdemos...");
|
||||
gotoxy(x,y);
|
||||
}
|
||||
}
|
||||
borrar(25);textcolor(7);gotoxy(3,24);cprintf(" Se nos fue...");
|
||||
getch();
|
||||
}
|
||||
void borrar(int pos_y){
|
||||
for (int limpia=1;limpia<=80;limpia++){
|
||||
gotoxy (limpia,pos_y);
|
||||
textcolor (0);
|
||||
cprintf ("<EFBFBD>");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user