Programming abstractions in C阅读笔记:p179-p180
  RuWxMzMwn4OI 2023年11月02日 29 0


《Programming Abstractions In C》学习第60天,p179-p180总结。

一、技术总结

1.palindrome(回文)

(1)包含单个字符的字符串(如"a"),或者空字符串(如" ")也是回文。

(2)示例:“level”、“noon”。

2.predicate function

(1)predicate的意思

pre-(“forth”) + *deik-(“show”),“that which is said of subject(关于某个东西的论述)”。也有“vt. to say sth that is true(断言)”之意。

(2) predicate function

Predicate function is function that returen True or False。

(3)示例

// predicate function示例: IsPalindrome()就是一个predicate function
bool IsPalindrome(string str) {
    int len;

    len = StringLength(str);
    if (len <= 1) {
        return TRUE;
    } else {
        return (IthChar(str, 0) == IthChar(str, len - 1)
                && IsPalindrome(SubString(str, 1, len - 2)));
    }

}

二、英语总结

1.palindrome是什么意思?

答:palin(“back”) + drome(“a running”)。c. a word that reads the same forward and backward(回文)。

2.dentically是什么意思?

答:

(1)identically < identical: adv. in a way that is excatly the way。

(2)identical < identity: adj. exactly the same(完全相同)。

(3)identity: idem-(“the same”), used to avoid repetition in writing。u. the fact of being or feeling the same。

(4)identify: regard as the same(识别)。vt. to recognize sth and prove what that thing is。

3.revised是什么意思?

答:

p180,The revised implementation of Palindrome appears in Figure4-4。

(1)revised < revise: adj. changed in someway(经过修改的)。

(2)revise: re-(“repitition”) + videre(“to see”),即“to look at again”,后面逐渐引申为“to look over again with intent to to improve or amend(为了改进或修正而重新审视)”。look over: to quickly examine。

三、参考资料

1. 编程

(1)Eric S.Roberts,《Programming Abstractions in C》

2. 英语

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

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

Programming abstractions in C阅读笔记:p179-p180_ide

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

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  TKwJ4YzyA8uz   2024年05月17日   48   0   0 C语言
  6Df3JnWQUC5m   2024年04月24日   59   0   0 C语言
  fHBiUfJyY67V   2024年04月26日   43   0   0 C语言
  V88gxnVgnp1F   2024年05月08日   92   0   0 C语言
  6Df3JnWQUC5m   2024年05月08日   84   0   0 C语言
  o1ZcTI9mJsxK   2024年05月08日   121   0   0 C语言
  H5oyQecqjP4R   2024年04月26日   41   0   0 C语言
  6Df3JnWQUC5m   2024年04月25日   52   0   0 C语言
  nmX9dIiR6BtA   2024年04月28日   49   0   0 C语言
  6Df3JnWQUC5m   2024年05月17日   57   0   0 C语言
  6Df3JnWQUC5m   2024年04月25日   52   0   0 C语言
RuWxMzMwn4OI