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)

posted @ 2023-08-05 23:55  codists  阅读(3)  评论(0编辑  收藏  举报