问题
单项选择题
设有定义int k=1,m=2;float f=7;,则以下选项中错误的表达式是【 】。
A.k=k>=k
B.k++
C.k%int(f)
D.k>=f>m
答案
参考答案:C
解析:强制类型转换的一般形式为: (类型名) (表达式),而选项C中只给表达式加了括号,并没有绐类型名也加上括号,所以选项C的表达式错误。
设有定义int k=1,m=2;float f=7;,则以下选项中错误的表达式是【 】。
A.k=k>=k
B.k++
C.k%int(f)
D.k>=f>m
参考答案:C
解析:强制类型转换的一般形式为: (类型名) (表达式),而选项C中只给表达式加了括号,并没有绐类型名也加上括号,所以选项C的表达式错误。
People always say that if God closed a door in front of you, there must be a window opened for you. Yes, people always say that, but 31 is the window for me? I’m not disappointed, just a little worried 32 as my roommate said, “Why are you angry with yourself once you 33 to do anything?” I had no idea. I just can’t 34 myself if I can understand some easy things. Now, I just feel 35 with myself because I couldn’t finish the assignment(任务) on the lab, and what was 36 worse was that actually I didn’t understand what the 37 was! Fiona asked me why I didn’t 38 for help. The problem is that if I have to ask some silly questions, I will feel 39 . Before I came here, I was confident. But I have totally 40 it. Sometimes I can’t even find the right words: sometimes I am too shy to 41 others. I have to admit that I am 42 . The wisest people are always 43 who can take advantage of others’ wisdom. But I was so stupid as to close myself and 44 a lot of time soaking inside the workbook, 45 made me more confused. Why can’t I follow the sentence? I am 46 to get help the next time I have any questions. I can 47 I am not smart, But I shouldn’t hide it. I must 48 it as soon as possible. 49 I will have to waste much more time on it ---just like tonight. Difficulties always go with me. Go 50 ! I can make it.
|