画出求12-22+32-42+…+992-1002的值的算法框图。
解:如图:
。
设有如下定义: struct complex {int real, unreal;} data1={1, 8}. data2; 则以下赋值语句中错误的是
A.data2=data1;
B.data2=(2, 6);
C.data2.real=data1.real;
D.data2.real=data1.unreal;
完成句子。
1. I _____ (很高兴)at the news.
2. I often_________ (听到有人用英语唱这首歌).
3. ______ (由于伤得严重),he had to be taken to the hospital.
4. The child soon fell asleep,________ (由于路途劳累).
5. _______ (从山上看),the park looks very beautiful.
6. The hunter walked slowly in the forest,_________ (后面跟着他的狗).
7. Look! Many students are collecting________ (落叶).
8 . ______ (由于抽烟太多),he has suffered from lung cancer.
9.________ (不知道如何解这道题),1 went to my teacher for help.
10. He lay on the grass,_______(长时间地望着天空).