首页 > 其他分享 >Programming abstractions in C阅读笔记: p118-p122

Programming abstractions in C阅读笔记: p118-p122

时间:2023-08-20 22:36:33浏览次数:54  
标签:p122 abstractions 均匀分布 p118 Programming against uniform distribution

《Programming Abstractions In C》学习第49天,p118-p122,总结如下:

一、技术总结

1.随机数

(1)seed

p119,"The initial value--the value that is used to get the entire process start--is call a seed for the random generator."

二、数学总结

1.均匀分布(uniform distribution)

均匀分布属于概率论和统计学范畴,有连续性均匀分布和离散型均匀分布。

参考:(1)连续性均匀分布(continuous uniform distribution):(2)离散型均匀分布(discrte uniform distribution):

三、英语总结

1.discern是什么意思?

答:dis-("off, away") + cernere("distinguish, seperate, shif"),"to see, recorgnize, understand sth that is not clear(识别)",当使用这个单词的时候,表示“被识别”的对象并不是那么“clear”。

2.against什么意思?

p120,“Finally, every implementation needs to include its own interface so the compiler can check the prototypes against the actual definitions.”。这里之所以要把against抽出来说,是因为against很多地方会用到,但要说直接翻译成什么词,却不是那么好直接给出答案,这里做一个总结。against总体的意思是“prep. opposite/toward”。

3.suffice什么意思?

答:i. to be enough。形容词是“sufficent”。p120,“The comments in the interface should suffice.”(接口中定义的注释应该足够了)。

三、参考资料

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)

标签:p122,abstractions,均匀分布,p118,Programming,against,uniform,distribution
From: https://www.cnblogs.com/codists/p/17644749.html

相关文章

  • Programming abstractions in C阅读笔记: p114-p117
    《ProgrammingAbstractionsinC》学习第48天,p114-p117,​总结如下:一、技术总结主要通过randomnumber介绍了随机数的相关用法,interface​示例(random.h)​,clientprogram示例(craps.c)。#include<stdio.h>#include"genlib.h"#include"random.h"staticboolTryToMakePo......
  • Programming abstractions in C阅读笔记p111-p113: boilerplate
    《ProgrammingAbstractionsInC》学习第47天,p111-p113,总结如下:一、技术总结1.boilerplate/**File:random.h*Version:1.0*LastmodifiedonFriJul2216:44:361994byeroberts*-----------------------------------------------------*Thisinterfacepr......
  • Programming abstractions in C阅读笔记p111-p113: boilerplate
    《ProgrammingAbstractionsInC》学习第47天,p111-p113,总结如下:一、技术总结1.boilerplate/**File:random.h*Version:1.0*LastmodifiedonFriJul2216:44:361994byeroberts*-----------------------------------------------------*Thisinterfaceprovi......
  • Programming abstractions in C阅读笔记:p107-p110
    《ProgrammingAbstractionsInC》学习第46天,p107-p110,3.1小节——“Theconceptofinterface”,总结如下:一、技术总结1.clientp108,调用library的program称为client。2.interfacep108,"Todoso,thechapterfocusesontheboundarybetweenalibraryanditsclients,wh......
  • Programming abstractions in C阅读笔记:p107-p110
    《ProgrammingAbstractionsInC》学习第46天,p107-p110,3.1小节——“Theconceptofinterface”,总结如下:一、技术总结1.  clientp108,调用library的program称为client。2.  interfacep108,"To do so, the chapter focuses on the boundary between a library and ......
  • Programming abstractions in C阅读笔记:p91-p106
    《ProgrammingAbstractionsInC》学习第45天,p91-p102,完成第二章内容学习。总结如下:一、技术总结1.垃圾回收p91,"Somelanguage,includingJavasupportasystemfordynamicallocationthatactivelygoesthroughtoseewhatpartsofitareused,freeinganystorageth......
  • Programming abstractions in C阅读笔记:p88-p90
    《ProgrammingAbstractionsInC》学习第44天,p88-p90总结。一、技术总结1.内存分配内存分配可以分为:staticallocation、automaticallocation、dynamicallocation。内存分配使用的函数为:malloc()。二、英语总结1."up to this point"是什么意思?答:point: a particular......
  • Programming abstractions in C阅读笔记:p84-p87
    《ProgrammingAbstractionsInC》学习第43天,p84-p87总结。一、技术总结1.recordrecord也称为structure(结构体),是一种数据结构。record里面的成员称为record的field。对于record,需要其基本用法:定义、声明、field访问以及其与指针的关系。示例://定义structuretype语法:/*ty......
  • 《Programming Abstractions In C》阅读笔记p69-p71
    今日完成《ProgrammingAbstractionsInC》阅读P69-p71。一、技术总结涉及到的技术知识点有“symbolicconstant”,”Arraydeclaration”,“Arrayselection”。#include<stdio.h>#defineNJudges5intmain(intargc,charconst*argv[]){//Arraydeclarationp69:......
  • Microsoft.AspNetCore.Http.Abstractions 2.20 is deprecated
     您想要升级Microsoft.AspNetCore.Http.Abstractions包,您需要注意以下几点:Microsoft.AspNetCore.Http.Abstractions包在ASP.NETCore2.2版本后已经被标记为过时,因为它已经被包含在Microsoft.AspNetCore.App框架引用中12。因此,您不需要单独引用这个包,只需要在项目文件中......