Programming abstractions in C阅读笔记:p107-p110

《Programming Abstractions In C》学习第46天,p107-p110,3.1小节——“The concept of interface”,总结如下:
一、技术总结
1.client
p108,调用library的program称为client。

2.interface
p108,“To do so, the chapter focuses on the boundary between a library and its clients, which is called interface.”。
p108,“In English, the word interface means a common boundry between two distinct entities.”
在这里插入图片描述

在C语言中,interface就是一个的“xxx.h”文件,如stdio.h。

3.package
p109,"If you are assigned to develop a libray, part of your job consists of producing a .h file to serve as the library interface and a corresponding .c file that provides the underlying implementation. Those file constitute the package."根据这句话,.a 和 .h和在一起称为package。示例:stdio就是一个package。

4.approach
p110,“The two libraries embody different approaches…”。根据该句,approach指的就是函数,例如:getchar()。

二、英语总结
1."Interfaces are central to a modern treatement of libraries,"一句中treatement什么意思?
答:treatment:n. the way you deal with or behave towards to sb or sth.(对待,处理),“treatment of sth”意为“对sth的处理”,注意介词用的是of。

2.counterpart什么意思?
答:counter(词根contra,“facing, opposite”) + part(词根partie,“copy of a person or thing”)。counterpart的意思是“n. a person or thing that has the same purpose as another one”(相对应的东西)。作为对比,opposite含有“相反”之意,corresponding是形容词。

3.an amount of /amounts of语法
答:单独的使用an mount of/amounts of指表示数量,未表面数量的多少,所以,amount前面经常放置用于修饰数量的形容词,例如:enormous,large,regular等。

4.the designer of an interface must exercise special care to get it right一句中exercise什么意思?
答:vt. use sth。所以exerciese care 等同于use caution 或者be careful。

三、参考资料
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)

root@ecm-e00f:/# systemctl status apparmor × apparmor.service - Load AppArmor profiles Loaded: loaded (/lib/systemd/system/apparmor.service; disabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2025-06-25 17:05:34 CST; 45s ago Docs: man:apparmor(7) https://gitlab.com/apparmor/apparmor/wikis/home/ Process: 338199 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited, status=1/FAILURE) Main PID: 338199 (code=exited, status=1/FAILURE) CPU: 39ms Jun 25 17:05:34 ecm-e00f apparmor.systemd[338206]: AppArmor parser error for /etc/apparmor.d in profile /etc/ap> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338208]: AppArmor parser error for /etc/apparmor.d in profile /etc/ap> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338228]: AppArmor parser error for /etc/apparmor.d/lsb_release in pro> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338232]: AppArmor parser error for /etc/apparmor.d/nvidia_modprobe in> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338236]: AppArmor parser error for /etc/apparmor.d/sbin.dhclient in p> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338242]: AppArmor parser error for /etc/apparmor.d/usr.bin.man in pro> Jun 25 17:05:34 ecm-e00f apparmor.systemd[338199]: Error: At least one profile failed to load Jun 25 17:05:34 ecm-e00f systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE Jun 25 17:05:34 ecm-e00f systemd[1]: apparmor.service: Failed with result 'exit-code'. Jun 25 17:05:34 ecm-e00f systemd[1]: Failed to start apparmor.service - Load AppArmor profiles.
06-26
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值