当前位置: 首页 > news >正文

Programming Abstractions in C阅读笔记:p248-p253

《Programming Abstractions in C》学习第69天,p248-p253总结,总计6页。

一、技术总结

“A generalized program for two-player games”如标题所示,该小节强调要学会从一个复杂的程序中抽象出通用的内容——这也是本书的主旨——“Programming Abstractions in C”。示例:

#include <stdio.h>int main() {stateT state;moveT move;GiveInstructions();state = NewGame();while (!GameIsOver(state)) {DisplayGame(state);switch (WhoseTurn(state)) {case Human:move = GetUserMove(state);break;case Computer:move = ChooseComputerMove(state);break;}MakeMove(state, move);}AnnounceResult(state);
}

二、英语总结

1.terribly是什么意思?

答:p253, You may not terribly interested in a program that plays a nim; after all, nim is rather boring once you figure it out。

(1)terribly 有时候是“very badly”的意思,强调不好;示例:I slept terribly last night。

(2)有时候也可以仅表示“very”的意思。 I’m terribly pleased to hear that you’ve got a job。

2.transcend是什么意思?

答:*trans-(across, beyond) + scan(to clime)。vt. to go farther, rise above, or be more important or better than sth, especially a limit(超越)。

p253, The process of abstraction consists partly of defining these concepts as general types, with names like stateT and moveT, that transcend the details of any specific game。

3.whatsoever是什么意思?

答:

(1)whatso(what-,“whatever”) : an emphatic referring to things。

(2)whatever + ever: a double intensive of what。

(3)whatsoever: used aftr a negative phrase to add emphasis to the idea that is being expressed()。

示例:p253, It is important to notice that the main program gives no indication whatsoever about what th actual game is。

三、其它

前天南昌下雪了,到今天雪还没化完,冷得很。

四、参考资料

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)

http://www.lryc.cn/news/286659.html

相关文章:

  • 面试题目,你对前端工程化的了解
  • 2023年春秋杯网络安全联赛冬季赛 Writeup
  • docker安装Rabbitmq教程(详细图文)
  • java web mvc-05-JSF JavaServer Faces 入门例子
  • yolov8 训练voc数据集
  • Python笔记12-多线程、网络编程、正则表达式
  • X射线中关于高频高压发生器、高清晰平板探测器、大热容量X射线球管、远程遥控系统的解释
  • 【算法】最短路计数(搜索)复习
  • html火焰文字特效
  • Redis双写一致性
  • html+css+javascript实现贪吃蛇游戏
  • 【K8S】Kubernetes 中滚动发布由浅入深实战
  • MSP430仿真器使用常见问题
  • 芯驰E3340软件编译以及更新步骤
  • HCIA——18实验:NAT
  • 在VBA中使用SQL
  • vue项目中使用Element多个Form表单同时验证
  • 自然语言处理--概率最大中文分词
  • k8s-基础知识(Service,NodePort,CusterIP,NameSpace,资源限制)
  • 【腾讯云】您使用的腾讯云服务存在违规信息,请尽快处理
  • 深度学习 Day27——J6ResNeXt-50实战解析
  • 【力扣 50】Pow(x, n) C++题解(数学+递归+快速幂)
  • 速盾:服务器接入CDN后上传图片失败的解决方案
  • LabVIEW高级CAN通信系统
  • FastSpeech2——TTS论文阅读
  • 如何才能拥有比特币 - 01 ?
  • Unity | 渡鸦避难所-8 | URP 中利用 Shader 实现角色受击闪白动画
  • K8S--安装metrics-server,解决error: Metrics API not available问题
  • flume自定义拦截器
  • 安卓Spinner文字看不清