<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閱讀筆記:p123-p126

      《Programming Abstractions In C》學習第50天,p123-p126,總結如下:

      一、技術總結

      1.notaion

      這也是一個在計算機相關書籍中出現的詞,但有時卻不是那么好理解,因為它可以指代很多對象,這里做一個記錄。示例:p124。

      In C, you can use any character array to hold string data.

      char str[6] = {'h', ' ', 'l', ' ', 'o', '\0'};
      

      or, more compactly,

      char str[6] = "hello";
      

      If you use array notation, the standar idion for processing every character in a string looks like this:

      for (int i = 0; str[i] != '\0'; i++) {
      
        printf("i=%d\n", str1[i]);
      
      }
      

      在這里,“notation”以理解為“the activity of representing sth by a special system of marks or character”,即“notation”表示的是一種“標記方法”、“表示方法”。

      2.字符串用法示例

      #include <stdio.h>
      
      // 統計字符串中的空格(space):數組版
      static int CountSpaces(char str[]) {
          int i, nSpaces;
      
          nSpaces = 0;
          for (i = 0; str[i] != '\0'; i++) {
              if (str[i] == ' ') {
                  nSpaces++;
              }
          }
          return nSpaces;
      }
      
      // 統計字符串中的空格(space):指針版
      static int CountSpaces1(char *str) {
          int nSpaces;
          char *cp;
      
          nSpaces = 0;
          for (cp = str; *cp != '\0'; cp++) {
              if (*cp == ' ') {
                  nSpaces++;
              }
          }
          return nSpaces;
      
      }
      
      
      int main() {
          // 方式一:declare and initialize a string "hello"
          char str1[6] = {'h', ' ', 'l', ' ', 'o', '\0'};
          // 遍歷字符串
          for (int i = 0; str1[i] != '\0'; i++) {
              printf("i=%d\n", str1[i]);
          }
      
          // 方式二:更緊湊(compactly)
          char str2[6] = "hello";
      
          // 統計字符串中的空格
          int n;
          n = CountSpaces(str1);
          printf("\nthe number of spaces in string is: %d\n", n); // 2
      
          // 統計字符串中的空格
          int n1;
          n1 = CountSpaces1(str1);
          printf("\nthe number of spaces in string is: %d\n", n1); // 2
      
      
      }
      
      

      二、英語總結

      1.perfectively什么意思?

      答:perfect是“完美的”之意,但是perfectly翻譯的時候直接翻譯成"完美地"卻不大合適。應該翻譯成"adv. perfectly can alse mean very or compeletly"(很,非常)更好,當然,其實這個意思也是“in a perfect way”。

      2.likelihood什么意思?

      答:u.the chance than sth will happen(可能性),同義詞:possibility。

      三、參考資料

      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-21 22:36  codists  閱讀(26)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产精品黄色精品黄色大片| 精品久久久久无码| 国产精品制服丝袜白丝| 精品超清无码视频在线观看| 国产精品免费无遮挡无码永久视频| 中文字幕精品人妻丝袜| 少妇激情一区二区三区视频小说| www久久只有这里有精品| 亚洲精品日本一区二区| 四虎国产精品成人| 99亚洲男女激情在线观看| 亚洲午夜久久久久久噜噜噜| 日韩在线视频线观看一区| 中文字幕日韩精品国产| 人人妻人人澡人人爽| AV人摸人人人澡人人超碰| 精品国产精品午夜福利| 欧美精品一区二区三区中文字幕 | 国产99久久久国产精品~~牛| 99热精品国产三级在线观看| 欧美熟妇乱子伦XX视频| 国产精品自产在线观看一| 国产精品自在拍在线播放| 欧洲精品色在线观看| 国产在线播放专区av| 亚洲国产精品久久久久久久| 豆国产97在线 | 亚洲| 国产av黄色一区二区三区| 丁香五月亚洲综合深深爱| 久久天天躁狠狠躁夜夜婷 | 肉大捧一进一出免费视频| 99在线视频免费观看| 国产亚洲精品岁国产精品| 噜噜噜噜私人影院| 新巴尔虎右旗| 国产一区二区三区美女| 插插射啊爱视频日a级| 日韩幕无线码一区中文| 熟女人妻精品一区二区视频| 国产精品成人免费视频网站京东| 99中文字幕精品国产|