标题:执行错误??
取消只看楼主
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
结帖率:59.46%
 问题点数:0 回复次数:0 
执行错误??
#include <stdio.h>
int main()
{
    int i, j, n, m;                                       
    int a[16] =
    {
        0
    };                                             
    clrscr();                                         
    printf("please input the decimalism number(0~32767):\n");     
    scanf("%d", &n);                                    
    for (m = 0; m < 15; m++)                           
    {
        i = n % 2;                                    
        j = n / 2;                                      
        n = j;                                         
        a[m] = i;
    }
    for (m = 15; m >= 0; m--)
    {
        printf("%d", a[m]);                                 
        if (m % 4 == 0)
            printf(" ");                                 
    }
}
搜索更多相关主题的帖子: include please number 
2012-08-10 18:22



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




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

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