C 或C++ 可用動態配置記憶體産生陣列,在Rust 中相對應的動作是使用向量(vector)。 ... between 1 and 100 array[i] = rand::thread_rng().gen_range(1, 100 + 1); } }.
確定! 回上一頁