简间接引用 英语用

您所在的位置: &
1.1.6  用间接引用操作符解引指针
1.1.6  用间接引用操作符解引指针
人民邮电出版社
《深入理解C指针》第1章认识指针,本章简要介绍指针、指针操作符以及指针如何与内存相互作用。1.1 节研究如何声明指针、基本的指针操作符和null 的概念。C 支持好几种不同类型的null,所以仔细研究null 会对我们有所启发。本节为大家介绍用间接引用操作符解引指针。
1.1.6  用间接引用操作符解引指针
间接引用操作符(*)返回指针变量指向的值,一般称为解引指针。下面的例子声明和初始化了num 和pi:
int&num&=&5; &int&*pi&=&&&
然后下面的语句就用间接引用操作符来显示5,也就是num 的值:
printf(&%p\n&,*pi);&//&显示5&
我们也可以把解引操作符的结果用做左值。术语&左值&是指赋值操作符左边的操作数,所有的左值都必须可以修改,因为它们会被赋值。
下面的代码把200 赋给pi 指向的整数。因为它指向num 变量,200 会被赋值给num。图1-5 说明了这个操作如何影响内存。
*pi&=&200; &printf(&%d\n&,&num);&//&显示200&
【责任编辑: TEL:(010)】&&&&&&
关于&&的更多文章
指针是C 语言的一项核心特性,对于指针的掌握程度是区分C 语言新
本书描述了黑客用默默无闻的行动为数字世界照亮了一条道路的故事。
41岁的瑞恩是一名律师,当她第二次遭遇了婚姻的失败后
听到“领导者”,你能想到什么?是不是觉得领导是天生
在这本书里,卡普塔将建立个人品牌看成是一种个人发展
本书取材于各大IT公司历年面试真题(笔试、口试、电话面试、英语面试,以及逻辑测试和智商测试)。详细分析了应聘程序员(含网
51CTO旗下网站想要学好英语怎么能不知道直接引语与间接的用法呢?下面就让小编为大家详解一下吧。Part I:单词与短语a dinner party晚宴;hostess n.女主人;sit next to sb.挨着某人坐;unsmiling adj.不苟言笑的;tight adj.紧身的;take one's seat (动词短语)就座;fix on sth. (动词结构)集中在&&上;plate n.盘子;in a short time一会儿功夫;busy doing忙于做某事;make conversation with sb 与某人交谈;in despair 绝望中,绝望之下Part II:语法学习1.直接引语与间接引语的相互转换示例示例1:I said to her, “A new play is coming to the Globe soon.”I said to her that a new play was coming to the Globe soon.示例2:I asked her, “Will you be seeing it?”I asked her whether she would be seeing it.示例3:“Will you be spending your holidays abroad this year?” I asked her.I asked her if she would be spending her holidays abroad that year.示例4:“Will you be staying in England?” I asked her.I asked her if she would be staying in England.示例5:In despair, I asked her, “Are you enjoying your dinner?”In despair, I asked her if she was enjoying her dinner.示例6:“Young man,” she answered, “if you ate more and talked less, we would both enjoy our dinner.”She answered that if I had eaten more and talked less, we would have both enjoyed our dinner.2.虚拟语气承接刚刚讲过的内容:虚拟语气的本质就是“说废话”。这里,我们开始探讨“说废话”的几种情况:第一,在表示虚拟的条件句中“对现在事实说废话”,此时,主句也要做相应的变化予以配合。示例:If I had a lot of money, I would buy a new car.(实际情况呢,没钱!)第二,在表示虚拟的条件句中“对过去事实说废话”,此时,主句也要做相应的变化予以配合。示例:If you had told me the truth earlier, I would not have acted like that.(实际情况呢,你没告诉我,而我呢,也就那样做了!)第三,在表示虚拟的条件句中“对将来事实说废话”,此时,主句也要做相应的变化予以配合。示例:If I were to die tomorrow, I would not sleep tonight.(实际情况呢?身体棒着呢!明天不可能死,今晚呢,也就会照常呼呼大睡!)Part III:综合训练Last week (1) a dinner party, the hostess asked me (2) sit next to a Mrs. Rumbold. She was a big, (3 unsmile) lady (4) a tight black dress. She did not even look (5) (6) I took my seat beside her. Her eyes were (7 fix) (8) her plate (9) in a short time, she was busy (10 eat). I tried to make a conversation. 'A new play is coming to the Globe. Will you (11) seeing it?' 'No,' she answered. 'Will you (12) spending your holidays abroad this year?' I asked. 'No,' she answered. 'Will you (13) staying in England (14) Christmas?' I asked. 'No,' she answered. (15) despair, I asked her (16) she was enjoying her dinner (17) she answered 'Young man, (18) you (19 eat) more (20) (21 talk) less, we (22) both enjoy our dinner.'答案:(1) (2) (3) (4) (5)(6) (7) (8) (9) (10)(11) (12) (13) (14) (15) In;(16) whether// (17) (18) (19) (20)(21) (22) wouldPart IV:句子翻译英语中必须掌握的连词史上最多解法的英文歧义句从句与先行词一致原则1. 上周在一次晚宴上,女主人让我坐在一位Rumbold夫人旁边文章出自,转载请保留此链接!。2. 这位夫人是个大块头、不苟言笑的人,身穿一件黑色紧身衣。3. 我在她身旁就座时她连头都没抬一下。4. 她两眼紧盯着盘子,一会儿功夫,她就忙着吃上了。5. 我试着跟她攀谈。6. 一部新剧就要在环球剧院演出了,你准备去看吗?7. 你今年准备去国外度假吗?8. 绝望中,我问她是否吃得尽兴,她回答说:“年青人,如果你多吃饭少讲话,我们两人就都会吃得尽兴了。”答案:1. Last week at a dinner party, the hostess asked me to sit next to a Mrs. Rumbold.2. She was a big, unsmiling lady in a tight black dress.3. She did not even look up when I took my seat beside her.4. Her eyes were fixed on her plate and in a short time, she was busy eating.5. I tried to make a conversation.6. A new play is coming to the Globe, and will you be seeing it?7. Will you be spending your holidays abroad this year?8. In despair, I asked her whether she was enjoying her dinner and she answered 'Young man, if you ate more and talked less, we would both enjoy our dinner.'最近更新:免责声明:本文仅代表作者个人观点,与本网无关。看完本文,记得打分哦:很好下载Doc格式文档马上分享给朋友:?知道苹果代表什么吗实用文章,深受网友追捧比较有用,值得网友借鉴没有价值,写作仍需努力相关公共英语:
48小时热门

我要回帖

更多关于 引号直接引用间接引用 的文章

 

随机推荐