Programming abstractions in C阅读笔记:p132-p137

《Programming Abstractions In C》学习第53天,p132-p137,3.2小节"strings"总结如下:

一、技术总结

3.2小节介绍了字符串的用法:

1.C语言是没有字符串(string)这种数据类型的,但是实际的场景中又很需要这种数据类型,那怎么表示字符串呢?有两种方法:1.用字符数组表示。2.用字符指针表示。

2.C自带的字符串库是string,作者为了更好的使用string,封装出了strlib库,所以在书中的代码经常会看到作者在头文件中引入strlib这个库,而不是直接引用string库。

3.执行字符串复制的时候要考虑是否会产生buffer overflow问题。

二、英语总结

1.rather什么意思?

答:p132,"Note that this test does not check whether the strings are equal but rather whether the pointer are equal"。 rather在这里的意思是"adv. used to express an opposite opion",用于表达一种相反的观点,具体的意思根据上下文。例如在这句话里面的意思是"而是"。

2.impose什么意思?

答:in-(*en, "into, in") + pose("put, place"),vt. to introduce sth(引入),暗含"强制"之意。p132,Because the complexity imposed by string.h interface tends to get in the way of understanding more critical algorithmic issues,so...(因为string.h接口带来的复杂性往往会妨碍理解更关键的算法问题,所以...)。

3.present什么意思?

答:vt. to give, provide in a formal way。相对于give或者provide而言,present更正式一些。p132,The interface is called strlib.h and is presented in its complete form in Figure 3-6。

三、参考资料

1. 编程

(1)Eric S.Roberts,《Programming Abstractions in C》:https://book.douban.com/subject/2003414

2. 英语

(1)Etymology Dictionary:https://www.etymonline.com

(2) Cambridage Dictionary:https://dictionary.cambridge.org

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

相关推荐
Wish3D17 分钟前
阿里云OSS 上传文件 Python版本
开发语言·python·阿里云
凤年徐17 分钟前
【数据结构初阶】单链表
c语言·开发语言·数据结构·c++·经验分享·笔记·链表
oioihoii19 分钟前
C++11 右值引用:从入门到精通
开发语言·c++
阿阳微客2 小时前
Steam 搬砖项目深度拆解:从抵触到真香的转型之路
前端·笔记·学习·游戏
朝新_3 小时前
【多线程初阶】阻塞队列 & 生产者消费者模型
java·开发语言·javaee
立莹Sir3 小时前
Calendar类日期设置进位问题
java·开发语言
WarPigs4 小时前
Unity性能优化笔记
笔记·unity·游戏引擎
风逸hhh4 小时前
python打卡day46@浙大疏锦行
开发语言·python
火兮明兮5 小时前
Python训练第四十三天
开发语言·python
ascarl20106 小时前
准确--k8s cgroup问题排查
java·开发语言