在《Programming abstractions in C》第107至110页,如何理解抽象数据类型及其在程序设计中的重要性?
- 内容介绍
- 文章标签
- 相关推荐
本文共计490个文字,预计阅读时间需要2分钟。
《C语言中的编程抽象》学习第46天,p107-p110,3.1小节——接口的概念总结如下:
一、技术总结
1.客户端:调用库的程序称为客户端。
2.接口:定义了类或对象之间交互的方式。
二、具体内容
1.客户端:在p108页,提到调用库的程序被称为客户端。
2.接口:在p108页,Thus, the chapter f阐述了接口的概念。
《Programming Abstractions In C》学习第46天,p107-p110,3.1小节——“The concept of interface”,总结如下:
一、技术总结
1.client
p108,调用library的program称为client。
2.interface
p108,"Todoso,thechapterfocusesontheboundarybetweenalibraryanditsclients,whichiscalledinterface."。
p108,“InEnglish,thewordinterfacemeansacommonboundrybetweentwodistinctentities.”
在C语言中,interface就是一个的“xxx.h”文件,如stdio.h。
3.package
p109,"Ifyouareassignedtodevelopalibray,partofyourjobconsistsofproducinga.hfiletoserveasthelibraryinterfaceandacorresponding.cfilethatprovidestheunderlyingimplementation.Thosefileconstitutethepackage."根据这句话,.a和.h和在一起称为package。示例:stdio就是一个package。
4.approach
p110,“Thetwolibrariesembodydifferentapproaches...”。根据该句,approach指的就是函数,例如:getchar()。
二、英语总结
1.一句中treatement什么意思?
答:treatment:n.thewayyoudealwithorbehavetowardstosborsth.(对待,处理),“treatmentofsth”意为“对sth的处理”,注意介词用的是of。
2.什么意思?
答:counter(词根contra,"facing,opposite")+part(词根partie,“copyofapersonorthing”)。counterpart的意思是“n.apersonorthingthathasthesamepurposeasanotherone”(相对应的东西)。作为对比,opposite含有“相反”之意,corresponding是形容词。
3.anamountof/amountsof语法
答:单独的使用anmountof/amountsof指表示数量,未表面数量的多少,所以,amount前面经常放置用于修饰数量的形容词,例如:enormous,large,regular等。
4.一句中exercise什么意思?
答:vt.usesth。所以exerciesecare等同于usecaution或者becareful。
三、参考资料
1.编程
1)Eric S.Roberts,《Programming Abstractions in C》:book.douban.com/subject/2003414
2.英语
1)Etymology Dictionary:www.etymonline.com
2)Cambridage Dictionary:dictionary.cambridge.org
欢迎搜索及关注:编程人(a_codists)
本文共计490个文字,预计阅读时间需要2分钟。
《C语言中的编程抽象》学习第46天,p107-p110,3.1小节——接口的概念总结如下:
一、技术总结
1.客户端:调用库的程序称为客户端。
2.接口:定义了类或对象之间交互的方式。
二、具体内容
1.客户端:在p108页,提到调用库的程序被称为客户端。
2.接口:在p108页,Thus, the chapter f阐述了接口的概念。
《Programming Abstractions In C》学习第46天,p107-p110,3.1小节——“The concept of interface”,总结如下:
一、技术总结
1.client
p108,调用library的program称为client。
2.interface
p108,"Todoso,thechapterfocusesontheboundarybetweenalibraryanditsclients,whichiscalledinterface."。
p108,“InEnglish,thewordinterfacemeansacommonboundrybetweentwodistinctentities.”
在C语言中,interface就是一个的“xxx.h”文件,如stdio.h。
3.package
p109,"Ifyouareassignedtodevelopalibray,partofyourjobconsistsofproducinga.hfiletoserveasthelibraryinterfaceandacorresponding.cfilethatprovidestheunderlyingimplementation.Thosefileconstitutethepackage."根据这句话,.a和.h和在一起称为package。示例:stdio就是一个package。
4.approach
p110,“Thetwolibrariesembodydifferentapproaches...”。根据该句,approach指的就是函数,例如:getchar()。
二、英语总结
1.一句中treatement什么意思?
答:treatment:n.thewayyoudealwithorbehavetowardstosborsth.(对待,处理),“treatmentofsth”意为“对sth的处理”,注意介词用的是of。
2.什么意思?
答:counter(词根contra,"facing,opposite")+part(词根partie,“copyofapersonorthing”)。counterpart的意思是“n.apersonorthingthathasthesamepurposeasanotherone”(相对应的东西)。作为对比,opposite含有“相反”之意,corresponding是形容词。
3.anamountof/amountsof语法
答:单独的使用anmountof/amountsof指表示数量,未表面数量的多少,所以,amount前面经常放置用于修饰数量的形容词,例如:enormous,large,regular等。
4.一句中exercise什么意思?
答:vt.usesth。所以exerciesecare等同于usecaution或者becareful。
三、参考资料
1.编程
1)Eric S.Roberts,《Programming Abstractions in C》:book.douban.com/subject/2003414
2.英语
1)Etymology Dictionary:www.etymonline.com
2)Cambridage Dictionary:dictionary.cambridge.org
欢迎搜索及关注:编程人(a_codists)

