Home > Back-end >  Why this program generates the.lib file, not exe
Why this program generates the.lib file, not exe

Time:04-11

# include
# include

Typedef int datatype.
# define MaxSize 5
Typedef struct nod
{
Datatype data [MaxSize];
Int real, front;
} du;
Void crealist1 (du * one)
{
One -> front=0;
One -> real=1;
One -> data [one -> front]=NULL;
}
Void crealist (du * one)
{


While (((one -> real) + 1/MaxSize)!=one -> front)
{
Datatype x;
scanf("%d",&x);
If (one -> data [one -> front]=NULL)

One -> data [one -> front]=x;
The else
{
One -> data [one -> real]=x;
One -> real=one -> real + 1/MaxSize;

}


}
}
Void putout (du * one)
{
While (one -> front!=one -> real)
{
Printf (" % d ", one -> data [one -> front]);
One -> front=one -> front + 1/MaxSize;



}
}
Int mian ()
{
Du * one;
One=(du *) malloc (sizeof (du));
Crealist1 (one);
Crealist (one);
Putout (one);
return 0;

}
  • Related