经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 程序设计 » C 语言 » 查看文章
Programming abstractions in C阅读笔记:p132-p137
来源:cnblogs  作者:codists  时间:2023/8/29 8:51:16  对本文有异议

《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)

原文链接:https://www.cnblogs.com/codists/p/17663819.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号