帮忙把代码中的错误搞定!
#include <stdio.h>#include <string.h>
#include <stdlib.h>
typedef struct
{
int a;
int b;
} DOUBLE_INT, *Double_int;
Double_int a[4];
int main()
{
int i;
for ( i=0; i < 4; i++)
{
a[i]->a = (i+1);
a[i]->b = (i+1)<<1;
}
for ( i=0; i < 4; i++)
{
if (a[i]-> a & 1)
printf("a is Odd : a.a = %d a.b = %d\n",a[i]->a,a[i]->b);
else
printf("a is even: a.a = %d a.b = %d\n",a[i]->a,a[i]->b);
}
return 0;
}