Chronyan 发表于 2022-1-3 11:44:42

0.100个A
1.10个B
2.a
3.a = 12,b = 3,c = 8
4.z = x < 0? (-x):x
5.if(size > 12)
{
    cost = cost * 1.05;
    flag = 2
}
bill = cost * flag;

Cwhite 发表于 2022-1-3 15:59:20

1

huangdongshuo 发表于 2022-1-3 18:44:50

123

qq635711755 发表于 2022-1-4 10:44:44

haha

fmydedie 发表于 2022-1-4 11:48:57

0.100个
1.11个
2.a,b,c都i是l-value
3.a,b,c的值都为11
4.z=x>0?x:-x
5.Aif(size == 13)
            {
            cost = cost *1.05;
            flag = 2;
               }
       else
               {
                bill = cost * flag;
                }

张th 发表于 2022-1-4 16:30:41

0、100个
1、10
2、5,c,b
3、a=14,b=4,c=9
4、z = x >= 0? x; -x
5、
A、
int flag = 2;
if (size > 12)
{
   cost = cost * 1.05;
}
bill = cost * flag;

B、
int sheds;
if (ibex >14)
{
    sheds = 3;
}
sheds = 2;
help = 2 * sheds;

C、
reddin:scanf

一蓑烟雨@ 发表于 2022-1-5 11:42:00

看不懂

linliwen 发表于 2022-1-5 15:42:11

111111111111

ramghar 发表于 2022-1-5 18:51:39

好好学习天天向上

则微 发表于 2022-1-5 19:04:03

53153

yuqianjun 发表于 2022-1-5 20:12:49

1

倒悬山下 发表于 2022-1-6 12:45:52

1

c3994933 发表于 2022-1-6 13:07:47

答案

菜鸟雪月 发表于 2022-1-6 16:02:01

{:7_146:}

galeesc 发表于 2022-1-6 20:32:03

j

kazuo 发表于 2022-1-8 11:13:13

答案

2223137814 发表于 2022-1-8 15:45:02

1

cben 发表于 2022-1-9 02:48:48

回复查看

ToTally 发表于 2022-1-9 14:38:45

666

aaazo 发表于 2022-1-9 22:00:37

0.10
1.11
2.a,c
3.c=10
b=4
a=16
4.
x >0 || x < 0?x<0 = -z:x>0 = z
5.if (size>12)
{
   cost = cost *1.05;
   flag = 2
}
else
{
bill = cost *flag;
}
B.
if (ibex > 14)
                {
                        sheds = 3;
                }
                sheds = 2;
                else{
                       help = 2 * sheds;
                       
                }
C。
if (score < 0)
   {
      printf("count = %d\n", count);
   }
   count++;
   readin:scanf("%d", &score);

页: 199 200 201 202 203 204 205 206 207 208 [209] 210 211 212 213 214 215 216 217 218
查看完整版本: S1E16:拾遗 | 课后测试题及答案