首先來介紹一下結構(structure) , Rust 中宣告結構是用 struct 關鍵字,這跟C/C++ 很像,不過不太一樣的是, Rust 中預設所有的成員(member) 都是私有的(private)。
確定! 回上一頁