Programming abstractions in C阅读笔记:p176-p178

《Programming Abstractions In C》学习第59天,p176-p178总结。

一、技术总结

1.addtive sequences

tn = tn-1 + tn-2

序列:3, 7, 10, 17, 27, 44, 71, 115, 186, 301, 487, 788, 1275, …

p177, As a general class, the sequences that follow this pattern are called additive sequences。

2.wrapper functions

int Fib(int n) {
    return AdditiveSequence(n, 0, 1);
}

Functions of this sort, which simply return the result of another function, often after transforming the arguments in some way, are called wrapper functions

如上, Fib称为wrapper function。wrapper函数的作用是为subsidiary function提供参数。

二、英语总结

1.enormous是什么意思?

答:ex-(“out of”) + norm(“rule, norm”) + -ous(substituted for Latin -is*, “having, full of”*),即超乎寻常的。adj. “extremely large(巨大的)”之意。

2.given that是什么意思?

答:given that 的意思是“taking that fact into account / in consideration of the fact that”,可以翻译为“已知”。that后面的内容一定是fact,不能是假设的。

示例:p176,Given that the Fibonacci function can be implemented efficiently using iteration,the enormous explosion of steps required by the recursive implementation is more that a little disturbing

3.subsidiary是什么意思?

答:

(1)subsidiary: adj.used to refere to sth that less important than sth else with which is connected(辅助的,次要的)。c. a company that is controlled by another(子公司)。

(2)subsidy: c.money given as part of the cost of sth, to help or encourage it to happen(补贴,补助金)。

(3)subside: sub(“under”) + sidere(“to settle”),原本的意思是“sink to the bottom(下沉)”,引申义意义是“sink to a lower level(降低、减弱)”。vi.become less strong or extreme。

三、参考资料

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值