Lizta enlazada c++

Solo disponible en BuenasTareas
  • Páginas : 11 (2554 palabras )
  • Descarga(s) : 0
  • Publicado : 14 de febrero de 2012
Leer documento completo
Vista previa del texto
#include<stdio.h>
#include<stdlib.h>
#include<graphics.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include <errno.h>
#include <dir.h>
#include <dos.h>
#include <conio.h>
#define INSTALADA 0
#define NOINSTALADA !INSTALADA
#define ARROW_SIZE 25
extern int errno;
struct direc{
int Cve;
char Marca[30];char Tipo[30];
char Color[9];
char Modelo[4];
float Precio;
}info;
FILE *fp;
int estado[26];
void ingresar_dat(),imp_unidades(), ingresar_arch(), mostrar(), Fsalvar(), Fescribir(struct direc info), Fbuscar();
void Menu2(), Elim_Dat();
void Menu3(),Modifica();
int Val_Cve(int Cve);
char obtUnidad(void);
int numreg();
char nom_arch[100];
void fondo();
void fon();
void fond();
voidfondo1();
void fondo2();
void OrdBurb(), OrdSel();
void fondo2()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int left, top, right, bottom;

/* 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 */
}

/* draw a rectangle */
setfillstyle(SLASH_FILL,1);
bar(-1,-1,470,500);
setfillstyle(SLASH_FILL,9 );
bar(470,-1,500,500);
setfillstyle(SLASH_FILL,15);
bar(500,-1,510,500);setfillstyle(SLASH_FILL,7);
bar(510,-1,540,500);
setfillstyle(SLASH_FILL,8);
bar(540,-1,700,500);
/* clean up */
/* getch();
closegraph();
return 0; */
}

void fondo1()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy, i;

/* initialize graphics, 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 error code */
}

midx = getmaxx() / 2;
midy = getmaxy() / 2;

/* loop through the fillpatterns */
// for (i=EMPTY_FILL; i<USER_FILL; i++)
// {
/* set the fill style */
setfillstyle(SLASH_FILL, 14);

/* draw the 3-d bar */
bar3d(midx-320, midy-230, midx+320,
midy+300, 10, 10);
setfillstyle(XHATCH_FILL,10);

bar3d(midx-220, midy-130, midx+220,
midy+150, 10, 10);
setfillstyle(INTERLEAVE_FILL,8);

pieslice(80,80,0,360, 50);
setfillstyle(INTERLEAVE_FILL,12);
pieslice(580, 400,0,360, 50);

//getch();
// }

/* clean up */
}

void fond()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy, i;

/* initialize graphics, 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 error code */
}

midx = getmaxx() / 2;
midy = getmaxy() / 2;

/* loop through the fill patterns */
// for (i=EMPTY_FILL;i<USER_FILL; i++)
// {
/* set the fill style */
setfillstyle(XHATCH_FILL, 12);

/* draw the 3-d bar */
bar3d(midx-180, midy-230, midx+180,
midy+200, 10, 1);

// getch();
// }

/* clean up */
}

void fondo()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int left, top, right, bottom;

/* initialize...
tracking img