首页 > 其他分享 >《Programming Abstractions In C》阅读笔记p69-p71

《Programming Abstractions In C》阅读笔记p69-p71

时间:2023-07-18 23:31:56浏览次数:53  
标签:NJudges selection effective Abstractions p69 p71 scores Array size

今日完成《Programming Abstractions In C》阅读P69-p71。

一、技术总结

涉及到的技术知识点有“symbolic constant”,”Array declaration”,“Array selection”。

#include <stdio.h>
#define  NJudges 5

int main(int argc, char const *argv[])
{
    // Array declaration p69: type name[size];
    double scores[NJudges]; // 为了方便后续修改,所以数组的大小声明为symbolic constant

    // Array selection p70: array[index]
    scores[0] = 9.2;
    scores[0] = 9.9;
    scores[0] = 9.7;
    scores[0] = 9.0;
    scores[0] = 9.5;

    return 0;
}

二、英语总结

1、  pictorially

pictorial > pictorially:pictorius(of a painter) + -al(of, like, related to pertain to)。所以,pictorially的意思是in a way that related to pictures or photographs(图像化地,以绘画的方式)。

2、  gymnastics

phicical exercise that increase th body's strength, balance and ability to move gracefully(体操)。

3、  figure skating

a type of skating that involves circular patterns and often includes jumps(花样滑冰)。

4、  effective size 

effective 在这里的意思是:in fact,所以 effective size的意思是“实际大小”,“有效大小”。

参考资料:英语词根解析:Etymonline - Online Etymology Dictionary


欢迎搜索及关注:编程人

标签:NJudges,selection,effective,Abstractions,p69,p71,scores,Array,size
From: https://blog.51cto.com/u_15137915/6769608

相关文章

  • Microsoft.AspNetCore.Http.Abstractions 2.20 is deprecated
     您想要升级Microsoft.AspNetCore.Http.Abstractions包,您需要注意以下几点:Microsoft.AspNetCore.Http.Abstractions包在ASP.NETCore2.2版本后已经被标记为过时,因为它已经被包含在Microsoft.AspNetCore.App框架引用中12。因此,您不需要单独引用这个包,只需要在项目文件中......
  • P7112 题解
    题意简述模板题,求一个\(n\timesn(n\le600)\)的方阵的行列式模一个正整数\(p(1\lep\le10^9+7)\)的值(\(p\)不一定是质数)。题目分析这个题的最终代码其实很简单,重点在于过程。说实话,我在做这个题之前也就只知道个行列式的定义,只会暴力硬算。做了这个题才了解了行列式有那......
  • PPT| 智慧校园顶层设计规划方案P71
    PPT总共有71页,受篇幅有限,有需要PPT的同学关注:智慧城市之家......
  • Luogu P7118
    题面题意很清楚,就不复述了。不难发现,我们首先要求出场景数小于给定galgame的galgame数量,于是我们需要求出场景数\(=i\)的galgame数量,设为\(f_i\)。考虑根节点,当A场景大小为\(j\)时,B场景的大小为\(i-j-1\)。枚举每个\(j\),不难得到\(f_i=\sum\limits_{j=0}^{i-1......
  • 洛谷 P6938 - [ICPC2017 WF]Son of Pipe Stream(网络流)
    见过的最怪的网络流题,没有之一。首先新建超级源点,向\(1,2\)各连\(\infty\)的边。设最大流为\(A\),那么显然最优方案中flutter和water流量之和为\(A\)。先分析一波答案函数。显然,最终答案关于flutter的流量\(x\)的函数\(f(x)=x^a(A-x)^{1-a}\)。求导得\(f'(x)=ax^......
  • [Typescript] Creating Chainable Method Abstractions with Generics and the Builde
    import{expect,it}from"vitest";import{fetchUser}from"fake-external-lib";typeMiddleware<TInput,TOutput>=(input:TInput)=>TOutput;classDyna......
  • Luogu P7191 [COCI2007-2008#6] GRANICA
    https://www.luogu.com.cn/problem/P7191设\(\bmodm=r\),则能得到\(a_i=x_i\timesm+r\)。那么对于相邻的两个数\(a_i,a_{i-1}\)相减,就能得到\((x_i-x_{i-1})\time......
  • P6944 [ICPC2018 WF]Gem Island
    题目传送门GemIsland解题思路首先发现,尽管绿宝石会随机、不停的分裂,每分裂一次仅仅是随机抽取一个人多获得一块绿宝石而已。因此考虑将题意抽象成\(1+a_1、1+a_2、1+a......
  • P7114 [NOIP2020] 字符串匹配 解题报告
    ~~NOIP的蓝题果然还是好难啊啊啊啊~~前言:作为一道NOIP的真题,这道题放在T2难度并不是特别大,不过考点还是比较偏的,扩展KMP和树状数组的组合,并且还带有一定的思维难度,......
  • P7163 [COCI2020-2021#2] Svjetlo
    题意给你一棵点权是\(0/1\)的树,你可以从任意一点开始,走到任意一点结束,每到达一个点,都要翻转当前的点权。给定初始的点权,求使得整棵树的点权都变成\(1\)的最短路径长度......