标题:执行错误??
只看楼主
dreamhouse
Rank: 1
等 级:新手上路
帖 子:107
专家分:7
注 册:2011-12-16
结帖率:59.46%
已结贴  问题点数:10 回复次数:1 
执行错误??
#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-11 12:15
ldzy
Rank: 5Rank: 5
等 级:职业侠客
威 望:1
帖 子:64
专家分:339
注 册:2012-7-30
得分:10 
  clrscr();   
2012-08-11 13:32



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




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

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