当前位置: 首页 > news >正文

Programming Abstractions in C阅读笔记:p72-p75

《Programming Abstractions In C》阅读P72-p75,每次阅读其实都有很多内容需要总结,这里摘抄其中一部分。
一、技术总结
1.字符串数组
学习《Programming Abstractions in C》第75页的时候,遇到一段代码:

static string bigCities[] = { "New York","Los Angeles","Chicago","Houston","Philadelphia","San Diego","Detroit","Dallas"
};

这里直接使用string,不理解其中的用法,想着查缺补漏,便去找来《The C Programming Language》复习,在第5章“Pointers and Arrays”找到相关内容,便开始阅读起来,读完之后再回来看,发现代码后续的内容就是“Multidimensional array”,接着2.5节就是“Pointers and arrays”,当时怎么就没往下看呢?也许因为自己心里默认《Programming Abstractions in C》是讲算法,不讲那么基础的内容。
因为字符串数组的问题,导致本书的阅读进度极大的延后,通过该问题得到一点教训,那就是阅读一本书时,先阅读整体的章节目录,把书阅读完,不可深陷于某一部分。
2.nano快捷键

1)^: 表示Ctrl键
2)M: 表示Alt键

这是在进行git操作的时候遇到的(M-A),在这里进行记录倒不是要把快捷键记下来,而是当时搜索的时候如果不加nano,单独搜索”M-A”,那么能收到的答案较少。
二、英语总结
1.“The correspondence between indexing and pointer arithmetic is very close.”一句里面correspondence什么意思?
答:
(1)respond(vi. do reaction to sth, 响应) > respondence/respondency(n.)
(2)correspondence:cor(com-的通化形式,“together”) + respond(“to answer”)。
所以correspondence常用的一个意思是communication by letters(信件,通信),"写-收"引申出另外一个意思“对应关系”。所以整句话的意思是“索引(下标)运算和指针运算非常相似(具有密切的对应关系)。”
2.“thirty days hath September …”这句话是什么意思?
答:hath: in the past, the third person singular form of “have”。示例:he/she/it hath (= he/she/it has)。
3.“Although we have phrased this discussion in terms of integers”一句中phrase是什么意思?
答:
(1)phrase最常用的用法是用作名称,n.a group of words that is part of, rather than the whole of, a sentence.(一句话中的一部分,即“短语,词组”)。示例:The phrase “a not unfamiliar situation” is an example of a double negative.
(2)phrase也可以用作动词,如上面的这一句,vt. to express sth with a particular choice of words.(表达)。

三、参考资料
1.编程
1)Eric S.Roberts,《Programming Abstractions in C》:https://book.douban.com/subject/2003414
2)Brian W. Kernighan / Dennis M. Ritchie,《Brian W. Kernighan / Dennis M. Ritchie》:https://book.douban.com/subject/1236999
2.英语
1)Etymology Dictionary:https://www.etymonline.com
2)Cambridage Dictionary:https://dictionary.cambridge.org
3)Merrian-Webster Dictionary:https://www.merriam-webster.com
4)Collins Dictionary:https://www.collinsdictionary.com
5)Oxford Dictionary:https://www.oxfordlearnersdictionaries.com
6)The Free Dictonary:https://www.thefreedictionary.com
7)Urban Dictionary:https://www.urbandictionary.com

欢迎搜索及关注:编程人(a_codists)

http://www.lryc.cn/news/111279.html

相关文章:

  • bash测试test详解
  • 你来问我来答,ChatGPT对话软件测试!主题互动
  • 无人机巢的作用及应用领域解析
  • 面试热题(环形链表II)
  • 策略模式:优雅地实现可扩展的设计
  • 从8个新 NFT AMM,聊聊能如何为 NFT 提供流动性
  • 习题1.27
  • 简单游戏截图_可控截取内容2
  • 跨域+四种解决方法
  • RW-Everything的RwDrv.sys驱动调用
  • 0101docker mysql8镜像主从复制-运维-mysql
  • uC-OS2 V2.93 STM32L476 移植:系统启动篇
  • redis 集群 1:李代桃僵 —— Sentinel
  • 重置 Macbook 中MySQL 的 root 用户密码
  • 2308C++搞笑的概念化
  • 修改node_modules里的源码
  • 【每日一题Day287】LC24 两两交换链表中的节点 | 模拟 递归
  • Java ~ Collection/Executor ~ PriorityBlockingQueue【源码】
  • Java后台生成微信小程序码并以流的形式返回给前端
  • AtcoderABC226场
  • Linux知识点 -- VS Code远程连接服务器协助开发
  • blender基础认识(选项开关、工具栏、视图等)
  • React Hooks 中的属性详解
  • 工作遇到问题与解决办法(一)
  • 综合与新综合与新型交通发展趋势[75页PPT]
  • 【树形DP+换根思想】2022牛客多校加赛 H
  • Gitlab CI/CD笔记-第二天-GitOps的流水线常用关键词(1)
  • Spring Boot3.0(一):入门篇
  • 各种排序333
  • [C++] 类与对象(中)完整讲述运算符重载示例 -- 日期类(Date) -- const成员