P/c.i.no..怎么理解 ?

当前位置: >
> 请看一段简单程序关于(if(p)*p=0;)//请教://其中if(p)*p=0;怎么理解?//p
请看一段简单程序关于(if(p)*p=0;)//请教://其中if(p)*p=0;怎么理解?//p
ljyken & at
请看一段简单程序
关于(if(p)*p=0;)//请教:
& if(p)*p=0; &
& 怎么理解? &
//p & 可作为逻辑表达式?
int & ReadDat(void)
& FILE & *
& int & i=0;
& char & *p;
& if((fp=fopen( &IN.DAT &, &r &))==NULL) & return & 1;
& while(fegts(xx[i],80,fp)!=NULL)
& p=strchar(xx[i], '\n ');
& if(p)*p=0;
& maxline=i;
& fclose(fp);
& return & 0;
p 可作为逻辑表达式?
================
if(p)等价与if(p != NULL)
LJYVFP & &
& & (0)(0)strchr(不是strchar)返回的是指针(char *),即指向串中 &\n &的位置,
if (p) *p=0;
就是说将串中的第一个 &\n &替换为 &\0 &。
的含义为:指针p不是空指针则条件成立,p为空置针则条件不成立。
不一定非得是严格的逻辑表达式,编译器将隐式地转换为逻辑表达式,
比如上面的
if (p != NULL)。
ljypetrel & &
& & (0)(0)if(可以是变量)
如果是指针的话 意思是 if(p != NULL)
如果是int类型 if(a) 则 a& 0为真
ljytianwen & &
& & (0)(0)to: luya123()
如果是int类型 if(a) 则 a& 0为真
不对,应该是 if(a) 相当于 if( a != 0 )
ljynet & &
& & (0)(0)逻辑有错误,应该是:
swordyu & &
& & (0)(0)(if(p)*p=0;)
if(p) 等价于 if(p=!0)
对于指针,也等价于if(p=!NULL)
swordsword207 & &
& & (0)(0)while(fegts(xx[i],80,fp)!=NULL)
p=strchar(xx[i], '\n ');
if(p)*p=0;
strchar 是自定义的函数么?
似乎这样可能也是对的 ~
看楼主自己需要什么样的结果吧~sworld & &
& & (0)(0)
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&&&增值电信业务经营许可证湘B2-万载一小名师工作室
当前位置:&&&
PEP六年级英语上册第二单元测试卷
上传: 傅华华 &&&&更新时间: 13:01:59
五年级英语知识能力测试卷 一、单词测试(15分) I、根据上下文,写单词。(5分) 1. Zhang Peng is m________ a snowman.&&&&&&&& 2. I often p_______ sports with my friends. 3. In spring, we can f______ kites.&&&&&&&&&&&&&& 4. When's y______ birthday? 5. W______ season do you like best? II、找出不同类的单词。(10分) (  ) 1. A. sports&&& B. football&&&&& C. basketball&&&&& D. baseball (  ) 2. A. why&&& B. where&&&&&&&&&& C. when&&&&&&& D. weekend (  ) 3. A. Jan.&& B. Mon.&&&&&&&&& C. Aug.&&&&&&&&&&& D. Nov. (  ) 4. A. ninth   B. fifth&&&&&& C. twenty&&&&&&& &&&D. twelfth (  ) 5. A. draw&&&&&& B. writing&&&& C. listening&&&&& D. walking (  ) 6. A. pencil& &B. ruler&&&&& C. desk&&&&&&&&&& D. school (  ) 7. A. monkey&&&&&&&&&& B. bird&&&& C. kangaroo&&&& D. boy (  ) 8. A. spring&&&&& B. summer&& C. season&&&&&& &D. fall (  ) 9. A. cold&&&& B. hot&&&&& C. cool&&&&&&&&&& D. cloud (  ) 10. A.birthday&&&& B. Monday&& C. Friday&&&&&& D. Sunday
单项选择题。(20分) (&& ) 1. --- Hello! Can I speak to Tom?&&& &&&&&& --- Tom is drawing pictures in the study. ______ A. This is Tom&&& B. Please hold on.&& C. I'm coming. (&& ) 2. --- What's the date?&&&&&& --- ______. A. It's Feb. 9th&&&&&& B. It's 12:00&&& C. It's snowy. (&& ) 3. --- Please be quiet. &My mother is ______.&&& --- OK A. going hiking&& B. doing dishes&&& C. sleeping ( &&) 4. --- When do you eat breakfast?&&& --- I usually eat breakfast ______. And then I go to school at 8:00. A. at 7:30&&&&&&&& B. at 8:30&&&&&&&& C. at 9:20 (&& ) 5.& --- Which season do you like best, Zoom? --- ______. Because I can sleep a long time. &&&& A. Summer&&&&&& B. Fall&&&&&&& C. Winter ( &&)6. August is the ________ month of the year. A. seven&&&&&&&& B. ninth&&&&&&& C. eighth ( &&)7. ----______ do you like summer?&& ----______ I can swim in the river. A. Why;Because&& B. Why;And&&&&& C. Which;Because ( &&)8. There is a call ____ you. A. for&&&&&&&& B. on&&&&&&&&& C. at (& &)9. ----__________? &&&&&&& ----They are listening to music. A. What do they do?&& B. What are you doing?&& C. What are your grandparents doing? ( &&)10. Apples are sweet _______ fall. A. on&&&&&& B. in&&&&&&&& C. at&&
根据问句选择合适答语。(10分) (&& )1. What do cats like?&&& &&&&&&&&&A. It's flying (&& )2. Thank you for telling me.&&& &&B. No, they are reading books. (&& )3. What's the bird doing?&&&&&&& &&C. Yes, it is. (&& )4. Are they having a picnic?&&&&& &D. Rats. (&& )5. Is her birthday in May?&&&&&&&&& E. You're welcome. (&& )6.Are your teachers in the office?& F.They are sleeping. (&& )7.Do they often go hiking?&&&&&&&&&&& G.Yes, it does. (&& )8. What does he take for rabbits?&& H.Some carrots.& (&& )9.Does the fox live in the wood?&&& I.No. They often go shopping. (&& )10. What are they doing?&&&&&&&&&& J.No,they are on the playground.
按要求改写句子,每空一词。(15分)
He is cooking.(改一般疑问句) _______& _______ cooking?
What are they doing?( 变成第三人称he) What_______& _______doing?
She&s eating breakfast.(对画线部分提问)_______& _______she _______?
He often does some cleaning on Sunday.(改否定句及一般疑问句) He often _______ _______some cleaning on Sunday. _______ he often _______some cleaning on Sunday? 5.Let&s _______ (play)together.(用动词适当形式填空) 6.Tom, come in,& please.(改否定句)Tom, _______ come in,please. 7.The bears sleep.(改为现在进行时) The bears_______ _______.
阅读理解1。(15分) Lisa正准备为家人制作生日表,请按Lisa.提供的信息,看看一年中Lisa一家谁最早过生日,谁最晚过生日,请按月份的顺序给他们的生日排排序吧。另外还有一个提示,Lisa在全家人中第三个过生日。
My name is Lisa. My birthday is June 15th. Today is my birthday. I am so happy. Grandpa's birthday is in June, too. It's June 20th. He's 70 years old this year. We will (将) have a big dinner on his birthday.Grandma's birthday is in January. So she is the first to celebrate(庆祝) her birthday in my family. She is 68 years old. She is happy and healthy.My mother is a teacher. She is a lucky (幸运的) teacher. Her birthday is on Teachers' Day. Mike is my brother. His birthday is March 12th. We often plant trees on his birthday.Father's birthday is in December. It's cold. Sometimes we can play with the snow on his birthday.
阅读理解2。(15分)
&My name is Mike. I&m from (n, a, C, a, d,a). I live in Beijing now. In my family, my brother Sam likes summer. Because he can (m, i, w, s) in the lake and eat lots of ice-creams. But I don&t like summer. It&s too hot. I like (g, n, s, p, r, i). It&s warm. I can plant trees. My parents like fall. Because their birthday are both in September and (c, O, b, r, e, t, o). On the weekends , we usually visit grandparents. Sometimes we go hiking and (m, c, b, l, i) mountains. We have a happy family! I.写单词(5分) 1.__________& 2.__________& 3.__________& 4.__________ 5.__________ II.判断对错。 对的打&&&,错的打&&(10分) ( &&)1.Mike likes spring.   ( &&)2.Sam doesn&t like summer. ( &&)3. Mike&s mother&s birthday is in fall.   ( &&)4.We usually go hiking on the weekends. ( &&)5.There are three people in Mike&s family.
能力提升题。(10分) (&& )1.What do you do first when you wake up? &&& A.Wash my face.& B.Brush my teeth. C.Open my eyes. (&& )2.She is a_______girl. She is often sad. &&&&&&& A.yellow&& B.blue&&& C.black (&& )3._______is the first day of a week. &&&&&&& A.Monday&&& B.Saturday& C.Sunday (&& )4.----Which month has 28 days?---________. &&&&&&&& A.April&& B. February& C.every month (&& )5.How can a dog become a fox?
Change its tail.
Change its head.
Change its first alphabet. & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & 五年级英语知识能力测试卷 一、单词测试(15分) I、根据上下文,写单词。(5分) 1. Zhang Peng is m________ a snowman.&&&&&&&& 2. I often p_______ sports with my friends. 3. In spring, we can f______ kites.&&&&&&&&&&&&&& 4. When's y______ birthday? 5. W______ season do you like best? II、找出不同类的单词。(10分) (  ) 1. A. sports&&& B. football&&&&& C. basketball&&&&& D. baseball (  ) 2. A. why&&& B. where&&&&&&&&&& C. when&&&&&&& D. weekend (  ) 3. A. Jan.&& B. Mon.&&&&&&&&& C. Aug.&&&&&&&&&&& D. Nov. (  ) 4. A. ninth   B. fifth&&&&&& C. twenty&&&&&&& &&&D. twelfth (  ) 5. A. draw&&&&&& B. writing&&&& C. listening&&&&& D. walking (  ) 6. A. pencil& &B. ruler&&&&& C. desk&&&&&&&&&& D. school (  ) 7. A. monkey&&&&&&&&&& B. bird&&&& C. kangaroo&&&& D. boy (  ) 8. A. spring&&&&& B. summer&& C. season&&&&&& &D. fall (  ) 9. A. cold&&&& B. hot&&&&& C. cool&&&&&&&&&& D. cloud (  ) 10. A.birthday&&&& B. Monday&& C. Friday&&&&&& D. Sunday
单项选择题。(20分) (&& ) 1. --- Hello! Can I speak to Tom?&&& &&&&&& --- Tom is drawing pictures in the study. ______ A. This is Tom&&& B. Please hold on.&& C. I'm coming. (&& ) 2. --- What's the date?&&&&&& --- ______. A. It's Feb. 9th&&&&&& B. It's 12:00&&& C. It's snowy. (&& ) 3. --- Please be quiet. &My mother is ______.&&& --- OK A. going hiking&& B. doing dishes&&& C. sleeping ( &&) 4. --- When do you eat breakfast?&&& --- I usually eat breakfast ______. And then I go to school at 8:00. A. at 7:30&&&&&&&& B. at 8:30&&&&&&&& C. at 9:20 (&& ) 5.& --- Which season do you like best, Zoom? --- ______. Because I can sleep a long time. &&&& A. Summer&&&&&& B. Fall&&&&&&& C. Winter ( &&)6. August is the ________ month of the year. A. seven&&&&&&&& B. ninth&&&&&&& C. eighth ( &&)7. ----______ do you like summer?&& ----______ I can swim in the river. A. Why;Because&& B. Why;And&&&&& C. Which;Because ( &&)8. There is a call ____ you. A. for&&&&&&&& B. on&&&&&&&&& C. at (& &)9. ----__________? &&&&&&& ----They are listening to music. A. What do they do?&& B. What are you doing?&& C. What are your grandparents doing? ( &&)10. Apples are sweet _______ fall. A. on&&&&&& B. in&&&&&&&& C. at&&
根据问句选择合适答语。(10分) (&& )1. What do cats like?&&& &&&&&&&&&A. It's flying (&& )2. Thank you for telling me.&&& &&B. No, they are reading books. (&& )3. What's the bird doing?&&&&&&& &&C. Yes, it is. (&& )4. Are they having a picnic?&&&&& &D. Rats. (&& )5. Is her birthday in May?&&&&&&&&& E. You're welcome. (&& )6.Are your teachers in the office?& F.They are sleeping. (&& )7.Do they often go hiking?&&&&&&&&&&& G.Yes, it does. (&& )8. What does he take for rabbits?&& H.Some carrots.& (&& )9.Does the fox live in the wood?&&& I.No. They often go shopping. (&& )10. What are they doing?&&&&&&&&&& J.No,they are on the playground.
按要求改写句子,每空一词。(15分)
He is cooking.(改一般疑问句) _______& _______ cooking?
What are they doing?( 变成第三人称he) What_______& _______doing?
She&s eating breakfast.(对画线部分提问)_______& _______she _______?
He often does some cleaning on Sunday.(改否定句及一般疑问句) He often _______ _______some cleaning on Sunday. _______ he often _______some cleaning on Sunday? 5.Let&s _______ (play)together.(用动词适当形式填空) 6.Tom, come in,& please.(改否定句)Tom, _______ come in,please. 7.The bears sleep.(改为现在进行时) The bears_______ _______.
阅读理解1。(15分) Lisa正准备为家人制作生日表,请按Lisa.提供的信息,看看一年中Lisa一家谁最早过生日,谁最晚过生日,请按月份的顺序给他们的生日排排序吧。另外还有一个提示,Lisa在全家人中第三个过生日。
My name is Lisa. My birthday is June 15th. Today is my birthday. I am so happy. Grandpa's birthday is in June, too. It's June 20th. He's 70 years old this year. We will (将) have a big dinner on his birthday.Grandma's birthday is in January. So she is the first to celebrate(庆祝) her birthday in my family. She is 68 years old. She is happy and healthy.My mother is a teacher. She is a lucky (幸运的) teacher. Her birthday is on Teachers' Day. Mike is my brother. His birthday is March 12th. We often plant trees on his birthday.Father's birthday is in December. It's cold. Sometimes we can play with the snow on his birthday.
阅读理解2。(15分)
&My name is Mike. I&m from (n, a, C, a, d,a). I live in Beijing now. In my family, my brother Sam likes summer. Because he can (m, i, w, s) in the lake and eat lots of ice-creams. But I don&t like summer. It&s too hot. I like (g, n, s, p, r, i). It&s warm. I can plant trees. My parents like fall. Because their birthday are both in September and (c, O, b, r, e, t, o). On the weekends , we usually visit grandparents. Sometimes we go hiking and (m, c, b, l, i) mountains. We have a happy family! I.写单词(5分) 1.__________& 2.__________& 3.__________& 4.__________ 5.__________ II.判断对错。 对的打&&&,错的打&&(10分) ( &&)1.Mike likes spring.   ( &&)2.Sam doesn&t like summer. ( &&)3. Mike&s mother&s birthday is in fall.   ( &&)4.We usually go hiking on the weekends. ( &&)5.There are three people in Mike&s family.
能力提升题。(10分) (&& )1.What do you do first when you wake up? &&& A.Wash my face.& B.Brush my teeth. C.Open my eyes. (&& )2.She is a_______girl. She is often sad. &&&&&&& A.yellow&& B.blue&&& C.black (&& )3._______is the first day of a week. &&&&&&& A.Monday&&& B.Saturday& C.Sunday (&& )4.----Which month has 28 days?---________. &&&&&&&& A.April&& B. February& C.every month (&& )5.How can a dog become a fox?
Change its tail.
Change its head.
Change its first alphabet. & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & PEP六年级英语上册第二单元测试卷 听力部分 一、听录音,选出你所听到的单词。 (& )1. A. horse&&&&&&& B. bookstore&&&&&&& C. hospital (& )2. A. shoe store&&& B. bookstore&&&&&&& C. bus stop (& )3. A. west&&&&&&&& B. east&&&&&&&&&&& C. left&&&&&&&&
(& )4. A. sister&&&&&&& B. six&&&&&&&&&&&&& C. cinema&&&&
(& )5. A. south&&&&&&& B. mouse&&&&&&&&&& C. north&&&
(& )6. A. twelve&&&&&& B. twenty&&&&&&&&& C. twelfth (&& )7. A. right&&&&&&& B. left&&&&&&&&&&& C. straight (&& )8. A. where&&&&&&&&& C. how&&&&&&&&&&& D. what (&& )9. A. a pair of&&&&&& B. a piece of&&&& D. a group of &(&& )10. A. thin&&&&&&&&&& B. than&&&&&&&&&& C.then&&&&&
二、听录音,选出你所听到的句子。 (& )1. A. How can I get to the hospital? &&&&&&& B. How can I get to school? &&&&&&& C. How can I get to the bookstore? (& )2. A. Walk straight for three minutes. &&&&&&& B. Walk straight for six minutes. &&&&&&& C. Walk straight for eight minutes. (& )3. A. It&s near the post office. &&&&&&& B. It&s next to the post office. &&&&&&& C. It&s east of the post office. (& )4. A. I want to buy a pair of shoes. &&&&&&& B. I want to buy a pair of socks. &&&&&&& C. I want to buy a pair of glasses. (& )5. A. Is there a cinema near here? &&&&&&& B. Is there a library near here? &&&&&&& C. Is there a museum near here? & 三、听音,给下图中的建筑物标序号。 A.post office& B. cinema& C. science museum& D. hospital& E. bank
& 四、听录音,给你听到的句子的答语排序。 (&& )Yes, there is. (&& )It&s in front of our school. (&& )Go straight from here, then go straight. (&& )I want to buy a comic book. (&& )She goes to Beijing by plane. 五、听录音,填单词,完成对话。 A: Excuse me, where is the ________, please? B: It&s ________ ________ the post office. A: ________ can I ________ there? B: You can take the No.________bus. Get off at the ________, then ________ ________ for ________ minutes. You&ll see it. A: Thank you. B: You&re welcome. & & 笔试部分 五、选出划线部分读音不同于其他三个的单词。 (&& )1. A. book&&&& B. food&&&& C. school&&&&& D. too (&& )2. A. please&&& B. bread&&& C. head&&&&&&& D. ahead (&& )3. A. find&&&&& B. bike&&&& C. cinema&&&&& D. side (&& )4. A. play&&&& &B. way&&&& C. plane&&&&&& D. traffic (&& )5. A. west&&&&& B. left&&&&& C. next&&&&&& D. excuse 六、按要求写出单词的正确形式。 1. right(反义词)________ 2. north(对应词)________ 3. bus(复数)________ 4. let&s(完全形式)________ 5. by(同音词)________ 6. ride(ing形式) ________ 7. does not(缩写形式)________ 8. watch(单三形式)________ 9. swim(ing形式) ________ 10. have(单三形式)________ 七、选择填空。 (& )1. Is your home far ________ the school?A. at&&&&& B. in&&& C. from&&&&
(& )2. Come and look ________ me in the school. A. at&&&&&&&&& B. of&&&&&&&&&&&& C. on&&& &&& (& )3. You can go straight ________ five minutes. A. on&&&&&&& B. for&&&&&&&&&&& C. at&&&&&&
(& )4. The Science Museum is near the school ________the right. A. on&&&&&&&&& B. at&&&&&&&&&&&& C. in&&&&&&&
(& )5. Please come to my ________ birthday party. A. twelve&&&&&&&&&& B. twelfth&&&&&&&& C. two&&&
(& )6. ---& Is there a cinema near your home? ---& ________ A. Yes, there isn&t.&&& B. Yes, there is.&&& C. No, there is.&&
(& )7. Walk straight ________ five minutes. A. at&&&&&&&&&&&&&&& B. of&&&&&&& &&&C. for&&&&&
(& )8. The hospital is south ________ the cinema. A. from&&&&&&&&&&&&& B. for&&&&&&&&& C. of&&&&&
(& )9. I want ________ a pair of shoes.A. buy&&&&& B. buys&&&& C. to buy&&
(& )10. Turn right ________ the school, then go ________. A. of, straight&&&&&&&& B. at, straight&&& C. in, straight&
八、 把下列单词组合成正确的句子 1. on ,left, the, is, the, bookstore &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 2. please, is, the, where, hospital &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 3. can, get, how, museum, I, to, the, science. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 4. it, far, is, here, from &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 5. want, buy, I, pair, to, a, shoes, of. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 九、用所给词的适当形式填空。 1. What are you ________ (go)to do this weekend? 2. I want to& ________ (buy)a science book. 3. Amy& ________(like)watching TV. 4. John& ________(want)to be a driver. 5.My father is& ________(write)a report on the computer. 十、连词组句。 1. to, get, I, How, cinema, the, can&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ? 2. west, It&s, the, of, school&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& . 3. post, at, office, right, the, Turn&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& . 4. far, it, from, Is, home, your&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ? 5. is, shoe, the, Where, store, please&&&&&&&&&&&&&&&&&&&&&& &&&&&&&&&&&&&? 十一、阅读短文,选择问题的答案。 Mike goes to Harbin to visit his grandparents from Jinan on Sunday. He&s at the Harbin Station now. He is making a telephone to his grandparents. Grandpa: Hello! Mike: Hello, grandpa. This is Mike. I&m at the Harbin Station now. I don&t know the way to your home. How can I get there? On foot? Grandpa: It&s you, Mike. My dear! No, you can take the No.103 bus. Mike: Where is the bus stop? Grandpa: Go straight to the library. The bus stop is in front of the library. Mike: OK! See you later. Grandpa: Wait a minute! Get off at the Hong Xing Cinema. Walk west for three minutes. You can see a white building. My home is next to the building. Mike: Thank you, grandpa! Bye! 1. Mike lives in ________. A. Jinan&&&&&&&&&& B. Harbin&&&&&& C. Beijing 2. Where is Mike now? He is ________. A. at the Station&&&& B. at his grandpa&s house&&&& C. at the cinema 3. The bus stop is in front of ________. A. the bookstore&&& B. Hong Xing Cinema&&& C. library 4. What is Mike doing? He is ________. A. making a telephone&& B. waiting for his grandpa&& C. taking a trip 5. Where is the Mike&s grandpa&s house? It&s ________. A. next to the white building &&&&&&&&&&&&B. in front of the library
C. next to Hong Xing Cinema & & & & & & & & & & 六年级上册第二单元测试卷第二单元听力原文材料 一、听录音,选出你所听到的单词。 1.bookstore&& 2. bus stop& 3. west&& 4. cinema&&&& 5. mouse 6. twelfth&&&& 7. straight &&&8. where&& 9. a pair of &10. than
二、听录音,选出你所听到的句子。 1. How can I get to the bookstore?& 2. Walk straight for three minutes. 3. It&s east of the post office.&& 4. I want to buy a pair of shoes. 5. Is there a museum near here? 三、听音,给下图中的建筑物标序号。 1.It&s next to the library.&&&&&&&&&&&&& 2. It&s in front of the library. 3. It&s in the west of the hospital.&&&&&&&& 4. It&s near the library. 5. It&s in the south of the bank. 四、听录音,给你听到的句子的答语排序。 1. How does your mother go to Beijing? 2. How can I get to the science museum, please? 3. Excuse me, where is the bookstore? 4. I s there a cinema near here? 5. What are you going to buy? 五、听录音,填单词,完成对话。 A: Excuse me, where is the hospital, please? B: It&s next to the post office. A: How can I get there? B: You can take the No.18 bus. Get off at the cinema, then go straight for five minutes. You&ll see it. A: Thank you. B: You&re welcome. & & & & & & & & & & &
评论:(未激活和未注册用户评论需审核后才能显示!如需回复,请留下联系方式!)
文明上网,理智发言

我要回帖

更多关于 c.i.no. 的文章

 

随机推荐