Title

第12講 C++ standard library

Syllabus

章節大綱

L12_A
         map的使用 : Word Count範例
         (Use map to solve " Word Count" problem)
         list的使用 : One-way list 和 Two-way list
         (Use list to construct One-way list & Two-way list)
 
L12_B
         vector的使用 : 猜數字 - 電腦猜
         (Using vector : guess my number - guess by computer)
         -產生所有的答案
         (-Find all possible solutions)
          -過濾掉不符合項目 : erase() + remove_if()
         (-Delete undesirable item  : erase() + remove_if())
         -亂猜一個數字 : rng()和dis()
          (-generate a random guess : rng() & dis())
 
 
L12_C
         vector的使用 : 猜數字 - 電腦猜
         (Using vector : guess my number - guess by computer)
          -去除錯誤答案 : erase() + remove_if()
          (-Delete wrong answers : erase() + remove_if())
 
 
L12_D
         vector的使用 : 猜數字 - 使用者猜
         (Using vector : guess my number - guess by user)
         -輸出最差的提示
         (-Give the most useless hint) 
         上週講義更新 : rvalue補充
         (L11 Lecture note update : additional information
          of rvalue)
 

 【陳煥宗教授-程式設計二課課程講義】