#include
#include
#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
We’ve updated our privacy policy so that we are compliant with changing global privacy regulations and to provide you with insight into the limited ways in which we use your data.
You can read the details below. By accepting, you agree to the updated privacy policy.