#include <stdio.h>
#include <string.h>
#define t 100
struct libro
{
int cod;
int can;
char aut[50];
char tit[50];
};
int main ()
{
int i,op,o,p,salir;
struct libro a[t];
for (i=0;i<t;i++)
{
a[i].cod=i+1;
do{
printf ("ingrese la cantidad de ejemplares del libro cuyo cod es %d\n",i+1);
scanf ("%d",&a[i].can);
}while (a[i].can<1);
fflush (stdin);
printf ("ingrese el nombre del autor del libro\n");
gets (a[i].aut);
printf ("ingrese el titulo del libro\n");
gets (a[i].tit);
}
for (;;)
{
system ("cls");
pri