标题:帮忙把代码中的错误搞定!
取消只看楼主
qh5032486
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-12-13
结帖率:0
已结贴  问题点数:20 回复次数:0 
帮忙把代码中的错误搞定!
#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;
}
搜索更多相关主题的帖子: include 
2015-02-25 11:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-442178-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.038446 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved