查看
回复
include
0. unsign int
1. bool i bit
2. yes
3. 1 byte
4.no
5.
a,b,d,f
6unsign int
7.不會與定義不同
ll
想知道
看看
1
答案
看看
加油
最后一题不会
#include <stdio.h>
#include <math.h>
int main()
{
unsigned long long int sum;
long long int weight;
int i;
float temp;
for (i=0; i < 64; i++)
{
temp = pow(2,i);
sum = sum + temp;
}
weight = sum / 25000;
printf("éáo±íõó|¸Ã¸øóè′ïòà¶û%dá£Âó×ó!\n", sum);
printf("èç1ûÿ25000á£Âó×óÎa1kg,ÄÇÃ′ó|¸Ã¸ø%d1«½ïÂó×ó!\n", weight);
return 0;
}
{:10_316:}
1
为什么最后一题定义sum时要先=0?换句话说为什么挖的坑原本就有东西而不是自动清除呢?
0 long long int
1 1个字节
2是的有返回值。
3 8
4 bool型
5 e
6 int
7 错了就要承认。
天天向上!
。、。、、。
答案答案快出来