<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Programming abstractions in C閱讀筆記:p127-p129

      《Programming Abstractions In C》學習第51天,p127-p129,總結如下:

      一、技術總結

      1. string library

      掌握常用函數如strlen,strcpy用法。

      2.buffer overflow(緩沖區溢出)

      (1)什么是buffer?

      p129,Arrays that are preallocated and later use as a repository for data called buffers。

      (2)什么是緩沖區溢出?

      p129,Writing data past the end of an buffer is a common programming error called buffer overflow。

      //buffer overflow示例
      char *src = "Hello";
      char dst[1]; // dst稱為buffer
      
      strcpy(dst, src); // 該操作會導致buffer overflow問題
      

      書中只是做一個簡單的說明,具體可參考:

      (1) wikipedia, Buffer overflow: https://en.wikipedia.org/wiki/Buffer_overflow

      二、英語總結

      1.“The function will go ahead and copy characters right on past the end of the buffer.”語法分析

      答:這里的應該是The function will go ahead and (copy characters right) (on past the end of the buffer),這句話有幾個要注意的地方:

      (1)right

      adv. exactly or all the way(完全地),指的是“一直復制/繼續復制”。在原文中也有一點"強調"的意思--雖然字符串已經超過了緩沖區的長度(Buffersize),但是strcpy函數還是會復制。當然,副詞在句子中往往可以忽略,直接理解為copy也是可以的。

      (2)on the end

      這里之所以用on, 可能是因為data對buffer而言是on,例如:I have a pimple right on the end of my nose。參考:https://ell.stackexchange.com/questions/111682/on-the-end-of-something

      (3)past

      這里為什么使用past呢?如果不用,那么on the end of buffer也說得通。這里之所以用past,表示已經超過了緩沖區,past取“prep. to a position that is further than a particular point”之意。

      2.obligation什么意思?

      答:

      (1)oblige:ob-("to") + ligare("to bind"),to bind by oath(以誓言約束)。

      (2)oblige > obligation:obligation的意思是“n. the fact that you are obliged to do sth”(義務,責任)

      p129,"you have an obligation to check the length of the source string before you copy it using strpy"。

      3.equivalent of語法分析

      答:p129,“Thus,the Pig Latin equivalent of any is anyway”,初看到這句話的時候心里是困惑的,因為記憶中都是把equivalent當做形容詞用,后面接to。這里接of,那么就是用作名詞:n. sth that has the same amount,value, purpose etc as sth else。

      三、參考資料

      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)

      posted @ 2023-08-24 21:33  codists  閱讀(35)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 久久综合色之久久综合色 | 亚洲全乱码精品一区二区| 国产69久久精品成人看| 国产成人精品无人区一区| 新沂市| 国产福利片一区二区三区| 中文字幕人妻日韩精品| 欧美精品一区二区在线观看播放| av激情亚洲男人的天堂| 一区二区三区av天堂| 潘金莲高清dvd碟片| 久久这里只有精品首页| 中日韩中文字幕一区二区| 中文字幕日韩精品人妻| 人妻人人做人做人人爱| 麻豆国产va免费精品高清在线| 国产亚洲精品自在久久vr| 国产熟妇另类久久久久久| 定边县| 国产线播放免费人成视频播放| 久久精品国产亚洲精品色婷婷| 亚洲一区二区视频在线观看| 狠狠噜天天噜日日噜无码| 又色又爽又黄18禁美女裸身无遮挡| 国产成人拍国产亚洲精品| 中文国产成人精品久久不卡| 性奴sm虐辱暴力视频网站| 在线无码午夜福利高潮视频| 在线视频不卡在线亚洲| 精品国产AV无码一区二区三区| 亚洲2022国产成人精品无码区| 最新国产AV最新国产在钱| 资源在线观看视频一区二区| 又湿又紧又大又爽a视频| 人妻久久久一区二区三区| 色翁荡熄又大又硬又粗又视频| 99久久国产一区二区三区| 欧美国产日产一区二区| 大香伊蕉在人线国产最新2005| 高清自拍亚洲精品二区| 热久久美女精品天天吊色|