t_wの輪郭

VecRustベクタ

ベクタの作成

2022/2/18 12:37:00
let v1: Vec<i32> = Vec::new();
let v2 = vec![1, 2, 3];
println!("v1:{}", v2[2]);    //3
あれ