//Este es un ejemplo, puedes borrar el texto
//con la tecla backspace, te ecepta 6 caractes
//pero puedes alterar esta variable
//termina si se presiona enter o se exceden lo 6
//caracteres
//Puedes modificarlo para que te muestre el nombre
//mientras se escribe.
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
char retrazo(void);
int main(void)
{
char sysdat[10],borra[1],verifica;
int i;
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}
setfillstyle(SOLID_FILL, 6);
bar(40,40,150,70);
setcolor(15);
rectangle(39,39,151,71);
setcolor(15);
moveto(50,50);
borra[1]=NULL;
i=0;
while( i<6 && (verifica= retrazo()) != 28 ){
sysdat[i]=getch();
if(sysdat[i]==13){
sysdat[i]=NULL;
}
if(sysdat[i]==8)